[llvm] e3bb782 - [test] Fix rtf_type_checking.ll under NPM

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 24 10:02:56 PST 2020


Author: Arthur Eubanks
Date: 2020-11-24T10:02:29-08:00
New Revision: e3bb78293a13b0c85ee774615d1cf490e6f175d9

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

LOG: [test] Fix rtf_type_checking.ll under NPM

Added: 
    

Modified: 
    llvm/test/Transforms/OpenMP/rtf_type_checking.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/OpenMP/rtf_type_checking.ll b/llvm/test/Transforms/OpenMP/rtf_type_checking.ll
index e355c13508ca..5433adcd8abd 100644
--- a/llvm/test/Transforms/OpenMP/rtf_type_checking.ll
+++ b/llvm/test/Transforms/OpenMP/rtf_type_checking.ll
@@ -1,5 +1,7 @@
-; RUN: opt -S -openmpopt -stats < %s 2>&1 | FileCheck %s
-; RUN: opt -S -attributor  -openmpopt -stats < %s 2>&1 | FileCheck %s
+; RUN: opt -S -openmpopt -stats < %s 2>&1 -enable-new-pm=0 | FileCheck %s --check-prefixes=CHECK,LPM
+; RUN: opt -S -passes='devirt<2>(cgscc(openmpopt))' -stats -debug-pass-manager < %s 2>&1 | FileCheck %s --check-prefixes=CHECK,NPM
+; RUN: opt -S -attributor -openmpopt -stats < %s 2>&1 -enable-new-pm=0 | FileCheck %s --check-prefixes=CHECK,LPM
+; RUN: opt -S -passes='attributor,cgscc(devirt<2>(openmpopt))' -stats -debug-pass-manager < %s 2>&1 | FileCheck %s --check-prefixes=CHECK,NPM
 ; REQUIRES: asserts
 
 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
@@ -54,11 +56,16 @@ declare void @omp_get_thread_num()
 !1 = !{!"clang"}
 !2 = !{!3}
 !3 = !{i64 2, i64 -1, i64 -1, i1 true}
+
+; NPM: Running pass: OpenMPOptPass on (.omp_outlined.)
+; NPM-NOT: Running pass: OpenMPOptPass on (.omp_outlined.)
+; NPM: Running pass: OpenMPOptPass on (main)
+; NPM-NOT: Running pass: OpenMPOptPass on (main)
 ; ===-------------------------------------------------------------------------===
 ;                         ... Statistics Collected ...
 ; ===-------------------------------------------------------------------------===
 ;
-; CHECK: 1 cgscc-passmgr - Maximum CGSCCPassMgr iterations on one SCC
+; LPM: 1 cgscc-passmgr - Maximum CGSCCPassMgr iterations on one SCC
 ; CHECK: 2 openmp-opt{{.*}}Number of OpenMP runtime functions identified
 ;
-; There are two matches since the pass is run once per function.
\ No newline at end of file
+; There are two matches since the pass is run once per function.


        


More information about the llvm-commits mailing list