Chris Lattner | 93767fd | 2011-01-11 07:47:59 +0000 | [diff] [blame^] | 1 | ; RUN: opt -loop-rotate %s -disable-output |
| 2 | |
| 3 | target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" |
| 4 | target triple = "x86_64-apple-darwin10.0.0" |
| 5 | |
| 6 | ; PR8955 - Rotating an outer loop that has a condbr for a latch block. |
| 7 | define void @test1() nounwind ssp { |
| 8 | entry: |
| 9 | br label %lbl_283 |
| 10 | |
| 11 | lbl_283: ; preds = %if.end, %entry |
| 12 | br i1 undef, label %if.else, label %if.then |
| 13 | |
| 14 | if.then: ; preds = %lbl_283 |
| 15 | br i1 undef, label %if.end, label %for.condthread-pre-split |
| 16 | |
| 17 | for.condthread-pre-split: ; preds = %if.then |
| 18 | br label %for.cond |
| 19 | |
| 20 | for.cond: ; preds = %for.cond, %for.condthread-pre-split |
| 21 | br i1 undef, label %lbl_281, label %for.cond |
| 22 | |
| 23 | lbl_281: ; preds = %if.end, %for.cond |
| 24 | br label %if.end |
| 25 | |
| 26 | if.end: ; preds = %lbl_281, %if.then |
| 27 | br i1 undef, label %lbl_283, label %lbl_281 |
| 28 | |
| 29 | if.else: ; preds = %lbl_283 |
| 30 | ret void |
| 31 | } |