diff options
Diffstat (limited to 'test/Transforms/InstCombine/2008-02-04-GEPIdxBug.ll')
-rw-r--r-- | test/Transforms/InstCombine/2008-02-04-GEPIdxBug.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/InstCombine/2008-02-04-GEPIdxBug.ll b/test/Transforms/InstCombine/2008-02-04-GEPIdxBug.ll index 6814e2f..064fbd1 100644 --- a/test/Transforms/InstCombine/2008-02-04-GEPIdxBug.ll +++ b/test/Transforms/InstCombine/2008-02-04-GEPIdxBug.ll @@ -10,7 +10,7 @@ define i32 @main() nounwind { entry: %orientations = alloca [1 x [1 x %struct.x]] ; <[1 x [1 x %struct.x]]*> [#uses=2] %tmp3 = call i32 @puts( i8* getelementptr ([6 x i8]* @.str, i32 0, i32 0) ) nounwind ; <i32> [#uses=0] - %tmp45 = getelementptr [1 x [1 x %struct.x]]* %orientations, i32 1, i32 0, i32 0 ; <%struct.x*> [#uses=1] + %tmp45 = getelementptr inbounds [1 x [1 x %struct.x]]* %orientations, i32 1, i32 0, i32 0 ; <%struct.x*> [#uses=1] %orientations62 = getelementptr [1 x [1 x %struct.x]]* %orientations, i32 0, i32 0, i32 0 ; <%struct.x*> [#uses=1] br label %bb10 @@ -18,7 +18,7 @@ bb10: ; preds = %bb10, %entry %indvar = phi i32 [ 0, %entry ], [ %indvar.next, %bb10 ] ; <i32> [#uses=2] %tmp.0.reg2mem.0.rec = mul i32 %indvar, -1 ; <i32> [#uses=1] %tmp12.rec = add i32 %tmp.0.reg2mem.0.rec, -1 ; <i32> [#uses=1] - %tmp12 = getelementptr %struct.x* %tmp45, i32 %tmp12.rec ; <%struct.x*> [#uses=2] + %tmp12 = getelementptr inbounds %struct.x* %tmp45, i32 %tmp12.rec ; <%struct.x*> [#uses=2] %tmp16 = call i32 (i8*, ...)* @printf( i8* getelementptr ([12 x i8]* @.str1, i32 0, i32 0), %struct.x* %tmp12 ) nounwind ; <i32> [#uses=0] %tmp84 = icmp eq %struct.x* %tmp12, %orientations62 ; <i1> [#uses=1] %indvar.next = add i32 %indvar, 1 ; <i32> [#uses=1] |