Before deleting a basic block, give other loop passes a chance cleanup analysis value...
[oota-llvm.git] / test / Transforms / LICM / 2009-03-25-AliasSetTracker.ll
1
2 ; RUN: llvm-as < %s | opt -licm -loop-index-split -instcombine -disable-output
3
4         %struct.FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct.FILE*, i32, i32, i32, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i8*, i8*, i32, i32, [40 x i8] }
5         %struct._IO_marker = type { %struct._IO_marker*, %struct.FILE*, i32 }
6 @"\01LC81" = external constant [4 x i8]         ; <[4 x i8]*> [#uses=1]
7
8 define fastcc void @hex_dump_internal(i8* %avcl, %struct.FILE* %f, i32 %level, i8* nocapture %buf, i32 %size) nounwind {
9 entry:
10         br i1 false, label %bb4, label %return
11
12 bb4:            ; preds = %bb30, %entry
13         br label %bb6
14
15 bb6:            ; preds = %bb15, %bb4
16         %j.0.reg2mem.0 = phi i32 [ %2, %bb15 ], [ 0, %bb4 ]             ; <i32> [#uses=2]
17         %0 = icmp slt i32 %j.0.reg2mem.0, 0             ; <i1> [#uses=1]
18         br i1 %0, label %bb7, label %bb13
19
20 bb7:            ; preds = %bb6
21         br label %bb15
22
23 bb13:           ; preds = %bb6
24         %1 = tail call i32 @fwrite(i8* getelementptr ([4 x i8]* @"\01LC81", i32 0, i32 0), i32 1, i32 3, i8* null) nounwind             ; <i32> [#uses=0]
25         br label %bb15
26
27 bb15:           ; preds = %bb13, %bb7
28         %2 = add i32 %j.0.reg2mem.0, 1          ; <i32> [#uses=2]
29         %3 = icmp sgt i32 %2, 15                ; <i1> [#uses=1]
30         br i1 %3, label %bb30, label %bb6
31
32 bb30:           ; preds = %bb15
33         br i1 false, label %bb4, label %return
34
35 return:         ; preds = %bb30, %entry
36         ret void
37 }
38
39 declare i32 @fwrite(i8* nocapture, i32, i32, i8* nocapture) nounwind