xref: /llvm-project/llvm/test/Transforms/SCCP/preserve-analysis.ll (revision 10c531cd5bf0166ce5bf42736506733b2285fdf8)
1; RUN: opt < %s -debug-pass-manager -passes='loop-vectorize,sccp,loop-vectorize' 2>&1 -S | FileCheck --check-prefix=NEW-PM %s
2
3; Check that DT is preserved by SCCP by running it between 2
4; loop-vectorize runs.
5
6; NEW-PM-DAG: Running analysis: LoopAnalysis on test
7; NEW-PM-DAG: Running analysis: DominatorTreeAnalysis on test
8; NEW-PM: Running pass: SCCPPass on test
9; NEW-PM: Running analysis: TargetLibraryAnalysis on test
10; NEW-PM: Running analysis: LoopAnalysis on test
11; NEW-PM-NOT: Running analysis: DominatorTreeAnalysis on test
12; NEW-PM-NOT: Running analysis: AssumptionAnalysis on test
13; NEW-PM-NOT: Running analysis: TargetLibraryAnalysis on test
14; NEW-PM-NOT: Running analysis: TargetIRAnalysis on test
15
16
17define i32 @test() {
18entry:
19  %res = add i32 1, 10
20  ret i32 %res
21}
22