diff --git a/llvm/test/Analysis/BlockFrequencyInfo/bad_input.ll b/llvm/test/Analysis/BlockFrequencyInfo/bad_input.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/bad_input.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/bad_input.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s declare void @g(i32 %x) diff --git a/llvm/test/Analysis/BlockFrequencyInfo/basic.ll b/llvm/test/Analysis/BlockFrequencyInfo/basic.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/basic.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/basic.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s -; RUN: opt < %s -analyze -lazy-block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s -analyze -lazy-block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s define i32 @test1(i32 %i, i32* %a) { diff --git a/llvm/test/Analysis/BlockFrequencyInfo/double_backedge.ll b/llvm/test/Analysis/BlockFrequencyInfo/double_backedge.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/double_backedge.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/double_backedge.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s define void @double_backedge(i1 %x) { diff --git a/llvm/test/Analysis/BlockFrequencyInfo/double_exit.ll b/llvm/test/Analysis/BlockFrequencyInfo/double_exit.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/double_exit.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/double_exit.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s ; CHECK-LABEL: Printing analysis {{.*}} for function 'double_exit': diff --git a/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll b/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s ; PR21622: Check for a crasher when the sum of exits to the same successor of a diff --git a/llvm/test/Analysis/BlockFrequencyInfo/irreducible.ll b/llvm/test/Analysis/BlockFrequencyInfo/irreducible.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/irreducible.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/irreducible.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s ; A loop with multiple exits isn't irreducible. It should be handled diff --git a/llvm/test/Analysis/BlockFrequencyInfo/irreducible_loop_crash.ll b/llvm/test/Analysis/BlockFrequencyInfo/irreducible_loop_crash.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/irreducible_loop_crash.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/irreducible_loop_crash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -block-freq +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 ; RUN: opt < %s -passes='print' -disable-output target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Analysis/BlockFrequencyInfo/irreducible_pgo.ll b/llvm/test/Analysis/BlockFrequencyInfo/irreducible_pgo.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/irreducible_pgo.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/irreducible_pgo.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s ; Function Attrs: noinline norecurse nounwind readnone uwtable diff --git a/llvm/test/Analysis/BlockFrequencyInfo/loop_with_branch.ll b/llvm/test/Analysis/BlockFrequencyInfo/loop_with_branch.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/loop_with_branch.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/loop_with_branch.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s ; CHECK-LABEL: Printing analysis {{.*}} for function 'loop_with_branch': diff --git a/llvm/test/Analysis/BlockFrequencyInfo/loop_with_invoke.ll b/llvm/test/Analysis/BlockFrequencyInfo/loop_with_invoke.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/loop_with_invoke.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/loop_with_invoke.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s ; CHECK-LABEL: Printing analysis {{.*}} for function 'loop_with_invoke': diff --git a/llvm/test/Analysis/BlockFrequencyInfo/loops_with_profile_info.ll b/llvm/test/Analysis/BlockFrequencyInfo/loops_with_profile_info.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/loops_with_profile_info.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/loops_with_profile_info.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s ; This code contains three loops. One is triple-nested, the diff --git a/llvm/test/Analysis/BlockFrequencyInfo/nested_loop_with_branches.ll b/llvm/test/Analysis/BlockFrequencyInfo/nested_loop_with_branches.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/nested_loop_with_branches.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/nested_loop_with_branches.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s ; CHECK-LABEL: Printing analysis {{.*}} for function 'nested_loop_with_branches' diff --git a/llvm/test/Analysis/BlockFrequencyInfo/redundant_edges.ll b/llvm/test/Analysis/BlockFrequencyInfo/redundant_edges.ll --- a/llvm/test/Analysis/BlockFrequencyInfo/redundant_edges.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/redundant_edges.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -analyze -block-freq | FileCheck %s -; RUN: opt < %s -analyze -lazy-block-freq | FileCheck %s +; RUN: opt < %s -analyze -block-freq -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s -analyze -lazy-block-freq -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s define void @test1() { diff --git a/llvm/test/Analysis/BranchProbabilityInfo/basic.ll b/llvm/test/Analysis/BranchProbabilityInfo/basic.ll --- a/llvm/test/Analysis/BranchProbabilityInfo/basic.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/basic.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -analyze -branch-prob | FileCheck %s -; RUN: opt < %s -analyze -lazy-branch-prob | FileCheck %s +; RUN: opt < %s -analyze -branch-prob -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s -analyze -lazy-branch-prob -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s define i32 @test1(i32 %i, i32* %a) { diff --git a/llvm/test/Analysis/BranchProbabilityInfo/deopt-intrinsic.ll b/llvm/test/Analysis/BranchProbabilityInfo/deopt-intrinsic.ll --- a/llvm/test/Analysis/BranchProbabilityInfo/deopt-intrinsic.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/deopt-intrinsic.ll @@ -1,4 +1,4 @@ -; RUN: opt -analyze -branch-prob < %s | FileCheck %s +; RUN: opt -analyze -branch-prob < %s -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s declare i32 @llvm.experimental.deoptimize.i32(...) diff --git a/llvm/test/Analysis/BranchProbabilityInfo/fcmp.ll b/llvm/test/Analysis/BranchProbabilityInfo/fcmp.ll --- a/llvm/test/Analysis/BranchProbabilityInfo/fcmp.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/fcmp.ll @@ -1,8 +1,9 @@ -; RUN: opt < %s -analyze -branch-prob | FileCheck %s +; RUN: opt < %s -analyze -branch-prob -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s ; This function tests the floating point unorder comparison. The probability ; of NaN should be extremely small. -; CHECK: Printing analysis 'Branch Probability Analysis' for function 'uno' +; CHECK: Printing analysis {{.*}} for function 'uno' ; CHECK: edge -> a probability is 0x00000800 / 0x80000000 = 0.00% ; CHECK: edge -> b probability is 0x7ffff800 / 0x80000000 = 100.00% [HOT edge] @@ -20,7 +21,7 @@ } ; This function tests the floating point order comparison. -; CHECK: Printing analysis 'Branch Probability Analysis' for function 'ord' +; CHECK: Printing analysis {{.*}} for function 'ord' ; CHECK: edge -> a probability is 0x7ffff800 / 0x80000000 = 100.00% [HOT edge] ; CHECK: edge -> b probability is 0x00000800 / 0x80000000 = 0.00% diff --git a/llvm/test/Analysis/BranchProbabilityInfo/libfunc_call.ll b/llvm/test/Analysis/BranchProbabilityInfo/libfunc_call.ll --- a/llvm/test/Analysis/BranchProbabilityInfo/libfunc_call.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/libfunc_call.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -analyze -branch-prob | FileCheck %s -; RUN: opt < %s -analyze -lazy-branch-prob | FileCheck %s +; RUN: opt < %s -analyze -branch-prob -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s -analyze -lazy-branch-prob -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s declare i32 @strcmp(i8*, i8*) @@ -353,4 +353,4 @@ exit: %result = phi i32 [ 0, %then ], [ 1, %else ] ret i32 %result -} \ No newline at end of file +} diff --git a/llvm/test/Analysis/BranchProbabilityInfo/loop.ll b/llvm/test/Analysis/BranchProbabilityInfo/loop.ll --- a/llvm/test/Analysis/BranchProbabilityInfo/loop.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/loop.ll @@ -1,5 +1,5 @@ ; Test the static branch probability heuristics for no-return functions. -; RUN: opt < %s -analyze -branch-prob | FileCheck %s +; RUN: opt < %s -analyze -branch-prob -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' --disable-output 2>&1 | FileCheck %s declare void @g1() diff --git a/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll b/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll --- a/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll @@ -1,5 +1,5 @@ ; Test the static branch probability heuristics for no-return functions. -; RUN: opt < %s -analyze -branch-prob | FileCheck %s +; RUN: opt < %s -analyze -branch-prob -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s declare void @abort() noreturn diff --git a/llvm/test/Analysis/BranchProbabilityInfo/pr18705.ll b/llvm/test/Analysis/BranchProbabilityInfo/pr18705.ll --- a/llvm/test/Analysis/BranchProbabilityInfo/pr18705.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/pr18705.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -branch-prob | FileCheck %s +; RUN: opt < %s -analyze -branch-prob -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s ; Since neither of while.body's out-edges is an exit or a back edge, diff --git a/llvm/test/Analysis/BranchProbabilityInfo/pr22718.ll b/llvm/test/Analysis/BranchProbabilityInfo/pr22718.ll --- a/llvm/test/Analysis/BranchProbabilityInfo/pr22718.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/pr22718.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -analyze -branch-prob | FileCheck %s +; RUN: opt < %s -analyze -branch-prob -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s ; In this test, the else clause is taken about 90% of the time. This was not diff --git a/llvm/test/Analysis/BranchProbabilityInfo/switch.ll b/llvm/test/Analysis/BranchProbabilityInfo/switch.ll --- a/llvm/test/Analysis/BranchProbabilityInfo/switch.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/switch.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -analyze -branch-prob | FileCheck %s -; RUN: opt < %s -analyze -lazy-branch-prob | FileCheck %s +; RUN: opt < %s -analyze -branch-prob -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s -analyze -lazy-branch-prob -enable-new-pm=0 | FileCheck %s ; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s declare void @g(i32) diff --git a/llvm/test/Analysis/BranchProbabilityInfo/zero_heuristics.ll b/llvm/test/Analysis/BranchProbabilityInfo/zero_heuristics.ll --- a/llvm/test/Analysis/BranchProbabilityInfo/zero_heuristics.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/zero_heuristics.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -branch-prob | FileCheck %s +; RUN: opt < %s -analyze -branch-prob -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s -passes='print' -disable-output 2>&1 | FileCheck %s @A = global i32 0, align 4 @B = global i32 0, align 4 diff --git a/llvm/test/Transforms/Util/PR37334-break-crit-edges-require-dt.ll b/llvm/test/Transforms/Util/PR37334-break-crit-edges-require-dt.ll --- a/llvm/test/Transforms/Util/PR37334-break-crit-edges-require-dt.ll +++ b/llvm/test/Transforms/Util/PR37334-break-crit-edges-require-dt.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt < %s -loop-sink -break-crit-edges -branch-prob -S | FileCheck %s -; RUN: opt < %s -loop-sink -break-crit-edges -lazy-block-freq -S | FileCheck %s -; RUN: opt < %s -loop-sink -break-crit-edges -lazy-branch-prob -S | FileCheck %s +; RUN: opt < %s -loop-sink -break-crit-edges -lazy-block-freq -S -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s -loop-sink -break-crit-edges -lazy-branch-prob -S -enable-new-pm=0 | FileCheck %s ; BreakCriticalEdges tries to update LI and DT if they are present. However, ; updating LI actually needs a DT, so we now require DT in