[test] Fix rtf_type_checking.ll under NPM

This commit is contained in:
Arthur Eubanks 2020-11-24 10:02:12 -08:00
parent 42eaf4fe0a
commit e3bb78293a
1 changed files with 11 additions and 4 deletions

View File

@ -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.
; There are two matches since the pass is run once per function.