Rearrange code so that llvm-upgrade doesn't break the optimization this

test is trying to verify.

llvm-svn: 32135
This commit is contained in:
Reid Spencer 2006-12-02 20:39:25 +00:00
parent d52ae0adda
commit 1dad92a1ba

View File

@ -13,7 +13,7 @@ entry:
cond_true: ; preds = %cond_true, %entry
%indvar = phi uint [ 0, %entry ], [ %indvar.next, %cond_true ] ; <uint> [#uses=3]
%i.0.0 = cast uint %indvar to int ; <int> [#uses=1]
%tmp = getelementptr [0 x int]* %Arr, int 0, uint %indvar ; <int*> [#uses=1]
%tmp = getelementptr [0 x int]* %Arr, int 0, int %i.0.0
store int %i.0.0, int* %tmp
%indvar.next = add uint %indvar, 1 ; <uint> [#uses=2]
%exitcond = seteq uint %indvar.next, %N ; <bool> [#uses=1]