[llvm] 73f02a6 - [llvm][NFC] ML InlineAdvisor: Factored CHECKs in common test

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 16:31:31 PDT 2020


Author: Mircea Trofin
Date: 2020-07-13T16:31:07-07:00
New Revision: 73f02a61dfb967e3d058490b0c39178e1219835e

URL: https://github.com/llvm/llvm-project/commit/73f02a61dfb967e3d058490b0c39178e1219835e
DIFF: https://github.com/llvm/llvm-project/commit/73f02a61dfb967e3d058490b0c39178e1219835e.diff

LOG: [llvm][NFC] ML InlineAdvisor: Factored CHECKs in common test

The CHECKs are going to be shared with the development mode test

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/Inline/ML/Inputs/test-module.ll b/llvm/test/Transforms/Inline/ML/Inputs/test-module.ll
index b8279e5db6a0..d01f4bb301a8 100644
--- a/llvm/test/Transforms/Inline/ML/Inputs/test-module.ll
+++ b/llvm/test/Transforms/Inline/ML/Inputs/test-module.ll
@@ -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

diff  --git a/llvm/test/Transforms/Inline/ML/ml-test-release-mode.ll b/llvm/test/Transforms/Inline/ML/ml-test-release-mode.ll
index 1ac0efd3cd0d..01acb43d0196 100644
--- a/llvm/test/Transforms/Inline/ML/ml-test-release-mode.ll
+++ b/llvm/test/Transforms/Inline/ML/ml-test-release-mode.ll
@@ -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


        


More information about the llvm-commits mailing list