| ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux -force-precise-rotation-cost < %s | FileCheck %s |
| ; Test that all edges in the loop chain are fall through with profile data. |
| %call = call zeroext i1 @a() |
| br i1 %call, label %if.then, label %latch, !prof !1 |
| %call3 = call zeroext i1 @a() |
| br i1 %call3, label %latch, label %end, !prof !2 |
| %call2 = call zeroext i1 @a() |
| br i1 %call2, label %header, label %end, !prof !3 |
| !1 = !{!"branch_weights", i32 16, i32 16} |
| !2 = !{!"branch_weights", i32 97, i32 3} |
| !3 = !{!"branch_weights", i32 97, i32 3} |