Davide Italiano | 20cb7e8 | 2017-08-28 20:29:33 +0000 | [diff] [blame^] | 1 | ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py |
| 2 | ; RUN: opt -loop-unroll %s -S | FileCheck %s |
| 3 | |
| 4 | declare zeroext i8 @patatino() |
| 5 | |
| 6 | define fastcc void @tinky() { |
| 7 | ; CHECK-LABEL: @tinky( |
| 8 | ; CHECK-NEXT: entry: |
| 9 | ; CHECK-NEXT: br label [[FOR_COND93:%.*]] |
| 10 | ; CHECK: for.cond93: |
| 11 | ; CHECK-NEXT: br label [[FOR_BODY198:%.*]] |
| 12 | ; CHECK: for.body198: |
| 13 | ; CHECK-NEXT: [[CALL593:%.*]] = tail call zeroext i8 @patatino() |
| 14 | ; CHECK-NEXT: ret void |
| 15 | ; |
| 16 | entry: |
| 17 | br label %for.cond93 |
| 18 | |
| 19 | for.cond93.loopexit: |
| 20 | ret void |
| 21 | |
| 22 | for.cond93: |
| 23 | br label %for.body198 |
| 24 | |
| 25 | for.body198: |
| 26 | %l_249.12 = phi i8 [ undef, %for.cond93 ], [ %call593, %for.body198 ] |
| 27 | %l_522.01 = phi i32 [ 0, %for.cond93 ], [ 1, %for.body198 ] |
| 28 | %call593 = tail call zeroext i8 @patatino() |
| 29 | br i1 false, label %for.body198, label %for.cond93.loopexit |
| 30 | } |