[SCEV] Pick backedge values for phi nodes correctly
[oota-llvm.git] / test / Transforms / IndVarSimplify / widen-nsw.ll
index 56c3c0d9f128b8d166bf4c597b2334f73f83a00b..8dbbb51ee51dc5102818ae5bde586e69b7e9e4aa 100644 (file)
@@ -16,8 +16,8 @@ for.cond:                                         ; preds = %for.body, %entry
 
 for.body:                                         ; preds = %for.cond
   %idxprom = sext i32 %i.0 to i64
-  %arrayidx = getelementptr inbounds i32* %a, i64 %idxprom
-  %0 = load i32* %arrayidx, align 4
+  %arrayidx = getelementptr inbounds i32, i32* %a, i64 %idxprom
+  %0 = load i32, i32* %arrayidx, align 4
   %add = add nsw i32 %sum.0, %0
   %inc = add nsw i32 %i.0, 1
   br label %for.cond