| OLD | NEW |
| (Empty) | |
| 1 ; Test conditional branch where targets are the same. |
| 2 ; Tests issue: https://code.google.com/p/nativeclient/issues/detail?id=4212 |
| 3 |
| 4 ; RUN: %p2i -i %s --insts | FileCheck %s |
| 5 |
| 6 define void @f(i32 %foo, i32 %bar) { |
| 7 entry: |
| 8 %c = icmp ult i32 %foo, %bar |
| 9 br i1 %c, label %block, label %block |
| 10 block: |
| 11 ret void |
| 12 } |
| 13 |
| 14 ; Note that the branch is converted to an unconditional branch. |
| 15 |
| 16 ; CHECK: define void @f(i32 %foo, i32 %bar) { |
| 17 ; CHECK-NEXT: entry: |
| 18 ; CHECK-NEXT: %c = icmp ult i32 %foo, %bar |
| 19 ; CHECK-NEXT: br label %block |
| 20 ; CHECK-NEXT: block: |
| 21 ; CHECK-NEXT: ret void |
| 22 ; CHECK-NEXT: } |
| OLD | NEW |