brintos

brintos / llvm-project-archived public Read only

0
0
Text · 547 B · 7e2b113 Raw
23 lines · plain
1; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s2; RUN: llc < %s -mtriple=x86_64-pc-linux -check-bfi-unknown-block-queries=true | FileCheck %s3 4; Checks if movl $1 is sinked to critical edge.5; CHECK-NOT: movl $16; CHECK: jbe7; CHECK: movl $18define i32 @test(i32 %n, i32 %k) nounwind  {9entry:10  %cmp = icmp ugt i32 %k, %n11  br i1 %cmp, label %ifthen, label %ifend, !prof !112 13ifthen:14  %y = add i32 %k, 215  br label %ifend16 17ifend:18  %ret = phi i32 [ 1, %entry ] , [ %y, %ifthen]19  ret i32 %ret20}21 22!1 = !{!"branch_weights", i32 100, i32 1}23