summaryrefslogtreecommitdiffstats
path: root/llvm/test/Other/time-passes.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Other/time-passes.ll')
-rw-r--r--llvm/test/Other/time-passes.ll24
1 files changed, 22 insertions, 2 deletions
diff --git a/llvm/test/Other/time-passes.ll b/llvm/test/Other/time-passes.ll
index 9c4f7ad1d26..066ff267c47 100644
--- a/llvm/test/Other/time-passes.ll
+++ b/llvm/test/Other/time-passes.ll
@@ -1,5 +1,8 @@
; RUN: opt < %s -disable-output -instcombine -instcombine -licm -time-passes 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-LEGACY
-; 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
+; 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
+; RUN: opt < %s -disable-output -passes='instcombine,instcombine,loop(licm)' -time-passes 2>&1 | FileCheck %s --check-prefix=TIME --check-prefix=TIME-NEW
+; 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
+; RUN: opt < %s -disable-output -passes='default<O2>' -time-passes 2>&1 | FileCheck %s --check-prefix=TIME
;
; TIME: Pass execution timing report
; TIME: Total Execution Time:
@@ -7,7 +10,7 @@
; TIME-LEGACY-DAG: Combine redundant instructions{{$}}
; TIME-LEGACY-DAG: Combine redundant instructions #2
; TIME-LEGACY-DAG: Loop Invariant Code Motion{{$}}
-; TIME-DOUBLE-LICM-DAG: Loop Invariant Code Motion #2
+; TIME-DOUBLE-LICM-LEGACY-DAG: Loop Invariant Code Motion #2
; TIME-LEGACY-DAG: Scalar Evolution Analysis
; TIME-LEGACY-DAG: Loop-Closed SSA Form Pass
; TIME-LEGACY-DAG: LCSSA Verifier
@@ -16,6 +19,23 @@
; TIME-LEGACY-DAG: Dominator Tree Construction
; TIME-LEGACY-DAG: Module Verifier
; TIME-LEGACY-DAG: Target Library Information
+; TIME-NEW-DAG: InstCombinePass #1
+; TIME-NEW-DAG: InstCombinePass #2
+; TIME-NEW-DAG: InstCombinePass #3
+; TIME-NEW-DAG: InstCombinePass #4
+; TIME-NEW-DAG: LICMPass #1
+; TIME-NEW-DAG: LICMPass #2
+; TIME-NEW-DAG: LICMPass #3
+; TIME-DOUBLE-LICM-NEW-DAG: LICMPass #4
+; TIME-DOUBLE-LICM-NEW-DAG: LICMPass #5
+; TIME-DOUBLE-LICM-NEW-DAG: LICMPass #6
+; TIME-NEW-DAG: LCSSAPass
+; TIME-NEW-DAG: LoopSimplifyPass
+; TIME-NEW-DAG: ScalarEvolutionAnalysis
+; TIME-NEW-DAG: LoopAnalysis
+; TIME-NEW-DAG: VerifierPass
+; TIME-NEW-DAG: DominatorTreeAnalysis
+; TIME-NEW-DAG: TargetLibraryAnalysis
; TIME: Total{{$}}
define i32 @foo() {
OpenPOWER on IntegriCloud