Skip to content

Commit

Permalink
[llvm][NFC] ML InlineAdvisor: Factored CHECKs in common test
Browse files Browse the repository at this point in the history
The CHECKs are going to be shared with the development mode test
  • Loading branch information
mtrofin committed Jul 13, 2020
1 parent caf395e commit 73f02a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion llvm/test/Transforms/Inline/ML/Inputs/test-module.ll
Expand Up @@ -61,4 +61,8 @@ define i32 @switcher(i32) {
; <label>:12: ; preds = %11, %6, %5
%13 = load i32, i32* %2, align 4
ret i32 %13
}
}

; CHECK-NOT: @adder
; DEFAULT-LABEL: @adder
; DEFAULT-NEXT: %2 = mul
4 changes: 2 additions & 2 deletions llvm/test/Transforms/Inline/ML/ml-test-release-mode.ll
Expand Up @@ -6,8 +6,8 @@
; for the 'development' mode.
;
; REQUIRES: have_tf_aot
; RUN: opt -passes=scc-oz-module-inliner -enable-ml-inliner=release -S < %S/Inputs/test-module.ll 2>&1 | FileCheck %s --check-prefix=CHECK
; RUN: opt -passes=scc-oz-module-inliner -enable-ml-inliner=default -S < %S/Inputs/test-module.ll 2>&1 | FileCheck %s --check-prefix=DEFAULT
; RUN: opt -passes=scc-oz-module-inliner -enable-ml-inliner=release -S < %S/Inputs/test-module.ll 2>&1 | FileCheck %S/Inputs/test-module.ll --check-prefix=CHECK
; RUN: opt -passes=scc-oz-module-inliner -enable-ml-inliner=default -S < %S/Inputs/test-module.ll 2>&1 | FileCheck %S/Inputs/test-module.ll --check-prefix=DEFAULT

; CHECK-NOT: @adder
; DEFAULT-LABEL: @adder
Expand Down

0 comments on commit 73f02a6

Please sign in to comment.