diff options
Diffstat (limited to 'llvm/test')
6 files changed, 7 insertions, 1 deletions
diff --git a/llvm/test/Analysis/BranchProbabilityInfo/basic.ll b/llvm/test/Analysis/BranchProbabilityInfo/basic.ll index d833b8339aa..d86709130f3 100644 --- a/llvm/test/Analysis/BranchProbabilityInfo/basic.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/basic.ll @@ -1,4 +1,5 @@ ; RUN: opt < %s -analyze -branch-prob | FileCheck %s +; RUN: opt < %s -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s define i32 @test1(i32 %i, i32* %a) { ; CHECK: Printing analysis {{.*}} for function 'test1' diff --git a/llvm/test/Analysis/BranchProbabilityInfo/deopt-intrinsic.ll b/llvm/test/Analysis/BranchProbabilityInfo/deopt-intrinsic.ll index 8728d4ab8fe..faa09f9e8a0 100644 --- a/llvm/test/Analysis/BranchProbabilityInfo/deopt-intrinsic.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/deopt-intrinsic.ll @@ -1,9 +1,10 @@ ; RUN: opt -analyze -branch-prob < %s | FileCheck %s +; RUN: opt < %s -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s declare i32 @llvm.experimental.deoptimize.i32(...) define i32 @test1(i32 %a, i32 %b) { -; CHECK-LABEL: Printing analysis 'Branch Probability Analysis' for function 'test1': +; CHECK-LABEL: Printing analysis {{.*}} for function 'test1': entry: %cond = icmp eq i32 %a, 42 br i1 %cond, label %exit, label %deopt diff --git a/llvm/test/Analysis/BranchProbabilityInfo/loop.ll b/llvm/test/Analysis/BranchProbabilityInfo/loop.ll index 5be7adf3909..1a37a7a4659 100644 --- a/llvm/test/Analysis/BranchProbabilityInfo/loop.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/loop.ll @@ -1,5 +1,6 @@ ; Test the static branch probability heuristics for no-return functions. ; RUN: opt < %s -analyze -branch-prob | FileCheck %s +; RUN: opt < %s -passes='print<branch-prob>' --disable-output 2>&1 | FileCheck %s declare void @g1() declare void @g2() diff --git a/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll b/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll index 7098c2f7b8c..0c2fe863d03 100644 --- a/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/noreturn.ll @@ -1,5 +1,6 @@ ; Test the static branch probability heuristics for no-return functions. ; RUN: opt < %s -analyze -branch-prob | FileCheck %s +; RUN: opt < %s -passes='print<branch-prob>' -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 index f5f9612fcdb..74983ef1b4f 100644 --- a/llvm/test/Analysis/BranchProbabilityInfo/pr18705.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/pr18705.ll @@ -1,4 +1,5 @@ ; RUN: opt < %s -analyze -branch-prob | FileCheck %s +; RUN: opt < %s -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s ; Since neither of while.body's out-edges is an exit or a back edge, ; calcLoopBranchHeuristics should return early without setting the weights. diff --git a/llvm/test/Analysis/BranchProbabilityInfo/pr22718.ll b/llvm/test/Analysis/BranchProbabilityInfo/pr22718.ll index 51bbd13e83c..66ac89793b8 100644 --- a/llvm/test/Analysis/BranchProbabilityInfo/pr22718.ll +++ b/llvm/test/Analysis/BranchProbabilityInfo/pr22718.ll @@ -1,4 +1,5 @@ ; RUN: opt < %s -analyze -branch-prob | FileCheck %s +; RUN: opt < %s -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s ; In this test, the else clause is taken about 90% of the time. This was not ; reflected in the probability computation because the weight is larger than |