1 ; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-pc-linux -check-bfi-unknown-block-queries=true | FileCheck %s
4 ; Checks if movl $1 is sinked to critical edge.
8 define i32 @test(i32 %n, i32 %k) nounwind {
10 %cmp = icmp ugt i32 %k, %n
11 br i1 %cmp, label %ifthen, label %ifend, !prof !1
18 %ret = phi i32 [ 1, %entry ] , [ %y, %ifthen]
22 !1 = !{!"branch_weights", i32 100, i32 1}