blob: d9dc803cd11c87d9221d8e03c157deb91454ebc4 [file] [log] [blame]
Chris Lattner93767fd2011-01-11 07:47:59 +00001; RUN: opt -loop-rotate %s -disable-output
2
3target 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"
4target triple = "x86_64-apple-darwin10.0.0"
5
6; PR8955 - Rotating an outer loop that has a condbr for a latch block.
7define void @test1() nounwind ssp {
8entry:
9 br label %lbl_283
10
11lbl_283: ; preds = %if.end, %entry
12 br i1 undef, label %if.else, label %if.then
13
14if.then: ; preds = %lbl_283
15 br i1 undef, label %if.end, label %for.condthread-pre-split
16
17for.condthread-pre-split: ; preds = %if.then
18 br label %for.cond
19
20for.cond: ; preds = %for.cond, %for.condthread-pre-split
21 br i1 undef, label %lbl_281, label %for.cond
22
23lbl_281: ; preds = %if.end, %for.cond
24 br label %if.end
25
26if.end: ; preds = %lbl_281, %if.then
27 br i1 undef, label %lbl_283, label %lbl_281
28
29if.else: ; preds = %lbl_283
30 ret void
31}