1 ; RUN: opt < %s -passes='print<branch-prob>' -disable-output 2>&1 | FileCheck %s
3 declare i32 @llvm.experimental.deoptimize.i32(...)
5 define i32 @test1(i32 %a, i32 %b) {
6 ; CHECK-LABEL: Printing analysis {{.*}} for function 'test1':
8 %cond = icmp eq i32 %a, 42
9 br i1 %cond, label %exit, label %deopt
11 ; CHECK: edge %entry -> %exit probability is 0x80000000 / 0x80000000 = 100.00% [HOT edge]
12 ; CHECK: edge %entry -> %deopt probability is 0x00000000 / 0x80000000 = 0.00%
15 %rval = call i32(...) @llvm.experimental.deoptimize.i32() [ "deopt"() ]