indvars test case for r135558.

llvm-svn: 135559
This commit is contained in:
Andrew Trick 2011-07-20 02:14:37 +00:00
parent c5dd3e976a
commit f53622e129
1 changed files with 7 additions and 0 deletions

View File

@ -330,9 +330,16 @@ entry:
%first = getelementptr inbounds %structIF* %base, i64 0, i32 0
br label %loop
; CHECK: loop:
; CHECK: phi %structIF*
; CHECK: phi i32*
; CHECK: getelementptr inbounds
; CHECK: getelementptr inbounds
; CHECK: exit:
loop:
%ptr.iv = phi %structIF* [ %ptr.inc, %latch ], [ %base, %entry ]
%next = phi i32* [ %next.inc, %latch ], [ %first, %entry ]
store i32 4, i32* %next
br i1 undef, label %latch, label %exit
latch: ; preds = %for.inc50.i