brintos

brintos / llvm-project-archived public Read only

0
0
Text · 875 B · b3f06b7 Raw
43 lines · plain
1; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux -force-precise-rotation-cost < %s | FileCheck %s2 3define void @bar()  {4; Test that all edges in the loop chain are fall through with profile data.5;6; CHECK-LABEL: bar:7; CHECK: latch8; CHECK: header9; CHECK: if.then10; CHECK: end11 12entry:13  br label %header14 15header:16  call void @e()17  %call = call zeroext i1 @a()18  br i1 %call, label %if.then, label %latch, !prof !119 20if.then:21  call void @f()22  %call3 = call zeroext i1 @a()23  br i1 %call3, label %latch, label %end, !prof !224 25latch:26  call void @h()27  %call2 = call zeroext i1 @a()28  br i1 %call2, label %header, label %end, !prof !329 30end:31  ret void32}33 34declare zeroext i1 @a()35declare void @e()36declare void @f()37declare void @g()38declare void @h()39 40!1 = !{!"branch_weights", i32 16, i32 16}41!2 = !{!"branch_weights", i32 97, i32 3}42!3 = !{!"branch_weights", i32 97, i32 3}43