1 ; RUN: opt < %s -disable-output -passes='default<O2>' -time-passes 2>&1 | FileCheck %s --check-prefix=TIME
3 ; For new pass manager, check that -time-passes-per-run emit one report for each pass run.
4 ; RUN: opt < %s -disable-output -passes='instcombine,instcombine,loop-mssa(licm)' -time-passes-per-run 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-PER-RUN
5 ; RUN: opt < %s -disable-output -passes='instcombine,loop-mssa(licm),instcombine,loop-mssa(licm)' -time-passes-per-run 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-PER-RUN -check-prefix=TIME-DOUBLE-LICM
7 ; For new pass manager, check that -time-passes emit one report for each pass.
8 ; RUN: opt < %s -disable-output -passes='instcombine,instcombine,loop-mssa(licm)' -time-passes 2>&1 | FileCheck %s --check-prefixes=TIME,TIME-PER-PASS
9 ; RUN: opt < %s -disable-output -passes='instcombine,loop-mssa(licm),instcombine,loop-mssa(licm)' -time-passes 2>&1 | FileCheck %s --check-prefixes=TIME,TIME-PER-PASS
11 ; The following 2 test runs verify -info-output-file interaction (default goes to stderr, '-' goes to stdout).
12 ; RUN: opt < %s -disable-output -passes='default<O2>' -time-passes -info-output-file='-' 2>/dev/null | FileCheck %s --check-prefix=TIME
14 ; RUN: rm -f %t; opt < %s -disable-output -passes='default<O2>' -time-passes -info-output-file=%t
15 ; RUN: cat %t | FileCheck %s --check-prefix=TIME
17 ; TIME: Pass execution timing report
18 ; TIME: Total Execution Time:
20 ; TIME-PER-RUN-DAG: InstCombinePass #1
21 ; TIME-PER-RUN-DAG: InstCombinePass #2
22 ; TIME-PER-RUN-DAG: InstCombinePass #3
23 ; TIME-PER-RUN-DAG: InstCombinePass #4
24 ; TIME-PER-RUN-DAG: LICMPass #1
25 ; TIME-PER-RUN-DAG: LICMPass #2
26 ; TIME-PER-RUN-DAG: LICMPass #3
27 ; TIME-DOUBLE-LICM-DAG: LICMPass #4
28 ; TIME-DOUBLE-LICM-DAG: LICMPass #5
29 ; TIME-DOUBLE-LICM-DAG: LICMPass #6
30 ; TIME-PER_RUN-DAG: LCSSAPass
31 ; TIME-PER_RUN-DAG: LoopSimplifyPass
32 ; TIME-PER_RUN-DAG: ScalarEvolutionAnalysis
33 ; TIME-PER_RUN-DAG: LoopAnalysis
34 ; TIME-PER_RUN-DAG: VerifierPass
35 ; TIME-PER_RUN-DAG: DominatorTreeAnalysis
36 ; TIME-PER_RUN-DAG: TargetLibraryAnalysis
37 ; TIME-PER-PASS-DAG: InstCombinePass
38 ; TIME-PER-PASS-DAG: LICMPass
39 ; TIME-PER-PASS-DAG: LCSSAPass
40 ; TIME-PER-PASS-DAG: LoopSimplifyPass
41 ; TIME-PER-PASS-DAG: ScalarEvolutionAnalysis
42 ; TIME-PER-PASS-DAG: LoopAnalysis
43 ; TIME-PER-PASS-DAG: VerifierPass
44 ; TIME-PER-PASS-DAG: DominatorTreeAnalysis
45 ; TIME-PER-PASS-DAG: TargetLibraryAnalysis
46 ; TIME-PER-PASS-NOT: InstCombinePass #
47 ; TIME-PER-PASS-NOT: LICMPass #
48 ; TIME-PER-PASS-NOT: LCSSAPass #
49 ; TIME-PER-PASS-NOT: LoopSimplifyPass #
50 ; TIME-PER-PASS-NOT: ScalarEvolutionAnalysis #
51 ; TIME-PER-PASS-NOT: LoopAnalysis #
52 ; TIME-PER-PASS-NOT: VerifierPass #
53 ; TIME-PER-PASS-NOT: DominatorTreeAnalysis #
54 ; TIME-PER-PASS-NOT: TargetLibraryAnalysis #
61 br i1 false, label %loop1, label %end
66 define void @bar_with_loops() {
69 br i1 false, label %loop1, label %loop2
71 br i1 true, label %loop2, label %end