1 ; RUN: opt -module-summary %s -o %t1.bc
2 ; RUN: llvm-lto2 run %t1.bc -o %t.o \
3 ; RUN: -r=%t1.bc,_tinkywinky,pxl \
4 ; RUN: -debug-pass-manager \
5 ; RUN: -use-new-pm 2>&1 | FileCheck --check-prefix=NEWPM %s
7 ; RUN: llvm-lto -thinlto-action=run -exported-symbol tinkywinky \
9 ; RUN: -debug-pass-manager \
10 ; RUN: %t1.bc 2>&1 | FileCheck --check-prefix=NEWPM %s
12 ; RUN: llvm-lto -thinlto-action=run -exported-symbol tinkywinky \
13 ; RUN: -use-new-pm=false \
14 ; RUN: -debug-pass-manager \
15 ; RUN: -debug-pass=Structure \
16 ; RUN: %t1.bc 2>&1 | FileCheck --check-prefix=LEGACYPM %s
18 ; Check that the selected pass manager is used for middle-end optimizations by
19 ; checking the debug output for IPSCCP.
21 ; NEWPM-NOT: Interprocedural Sparse Conditional Constant Propagation
22 ; NEWPM: Running pass: IPSCCPPass on [module]
23 ; NEWPM-NOT: Interprocedural Sparse Conditional Constant Propagation
25 ; LEGACYPM-NOT: IPSCCPPass
26 ; LEGACYPM: Interprocedural Sparse Conditional Constant Propagation
27 ; LEGACYPM-NOT: IPSCCPPass
29 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
30 target triple = "x86_64-apple-macosx10.11.0"
32 define void @tinkywinky() {