1 ; RUN: opt < %s -disable-output -instcombine -instcombine -licm -time-passes 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-LEGACY
2 ; RUN: opt < %s -disable-output -instcombine -instcombine -licm -licm -time-passes 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-LEGACY --check-prefix=TIME-DOUBLE-LICM-LEGACY
3 ; RUN: opt < %s -disable-output -passes='instcombine,instcombine,loop(licm)' -time-passes 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-NEW
4 ; RUN: opt < %s -disable-output -passes='instcombine,loop(licm),instcombine,loop(licm)' -time-passes 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-NEW -check-prefix=TIME-DOUBLE-LICM-NEW
5 ; RUN: opt < %s -disable-output -passes='default<O2>' -time-passes 2>&1 | FileCheck %s --check-prefix=TIME
7 ; The following 4 test runs verify -info-output-file interaction (default goes to stderr, '-' goes to stdout).
8 ; RUN: opt < %s -disable-output -O2 -time-passes -info-output-file='-' 2>/dev/null | FileCheck %s --check-prefix=TIME
9 ; RUN: opt < %s -disable-output -passes='default<O2>' -time-passes -info-output-file='-' 2>/dev/null | FileCheck %s --check-prefix=TIME
11 ; RUN: rm -f %t; opt < %s -disable-output -O2 -time-passes -info-output-file=%t
12 ; RUN: cat %t | 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-LEGACY-DAG: Combine redundant instructions{{$}}
21 ; TIME-LEGACY-DAG: Combine redundant instructions #2
22 ; TIME-LEGACY-DAG: Loop Invariant Code Motion{{$}}
23 ; TIME-DOUBLE-LICM-LEGACY-DAG: Loop Invariant Code Motion #2
24 ; TIME-LEGACY-DAG: Scalar Evolution Analysis
25 ; TIME-LEGACY-DAG: Loop-Closed SSA Form Pass
26 ; TIME-LEGACY-DAG: LCSSA Verifier
27 ; TIME-LEGACY-DAG: Canonicalize natural loops
28 ; TIME-LEGACY-DAG: Natural Loop Information
29 ; TIME-LEGACY-DAG: Dominator Tree Construction
30 ; TIME-LEGACY-DAG: Module Verifier
31 ; TIME-LEGACY-DAG: Target Library Information
32 ; TIME-NEW-DAG: InstCombinePass #1
33 ; TIME-NEW-DAG: InstCombinePass #2
34 ; TIME-NEW-DAG: InstCombinePass #3
35 ; TIME-NEW-DAG: InstCombinePass #4
36 ; TIME-NEW-DAG: LICMPass #1
37 ; TIME-NEW-DAG: LICMPass #2
38 ; TIME-NEW-DAG: LICMPass #3
39 ; TIME-DOUBLE-LICM-NEW-DAG: LICMPass #4
40 ; TIME-DOUBLE-LICM-NEW-DAG: LICMPass #5
41 ; TIME-DOUBLE-LICM-NEW-DAG: LICMPass #6
42 ; TIME-NEW-DAG: LCSSAPass
43 ; TIME-NEW-DAG: LoopSimplifyPass
44 ; TIME-NEW-DAG: ScalarEvolutionAnalysis
45 ; TIME-NEW-DAG: LoopAnalysis
46 ; TIME-NEW-DAG: VerifierPass
47 ; TIME-NEW-DAG: DominatorTreeAnalysis
48 ; TIME-NEW-DAG: TargetLibraryAnalysis
55 br i1 false, label %loop1, label %end
60 define void @bar_with_loops() {
63 br i1 false, label %loop1, label %loop2
65 br i1 true, label %loop2, label %end