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