[llvm][NFC] ML InlineAdvisor: Factored CHECKs in common test
authorMircea Trofin <mtrofin@google.com>
Mon, 13 Jul 2020 23:29:19 +0000 (16:29 -0700)
committerMircea Trofin <mtrofin@google.com>
Mon, 13 Jul 2020 23:31:07 +0000 (16:31 -0700)
The CHECKs are going to be shared with the development mode test

llvm/test/Transforms/Inline/ML/Inputs/test-module.ll
llvm/test/Transforms/Inline/ML/ml-test-release-mode.ll

index b8279e5..d01f4bb 100644 (file)
@@ -61,4 +61,8 @@ define i32 @switcher(i32) {
 ; <label>:12:                                     ; preds = %11, %6, %5
   %13 = load i32, i32* %2, align 4
   ret i32 %13
-}
\ No newline at end of file
+}
+
+; CHECK-NOT: @adder
+; DEFAULT-LABEL:        @adder
+; DEFAULT-NEXT:         %2 = mul
\ No newline at end of file
index 1ac0efd..01acb43 100644 (file)
@@ -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