[llvm-commits] [llvm] r145343 - /llvm/trunk/test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll
Andrew Trick
atrick at apple.com
Mon Nov 28 16:52:05 PST 2011
Author: atrick
Date: Mon Nov 28 18:52:04 2011
New Revision: 145343
URL: http://llvm.org/viewvc/llvm-project?rev=145343&view=rev
Log:
Reenable this IndVars unit test.
SCEV can't optimize undef in all cases, which is a separate issue from this test case.
Modified:
llvm/trunk/test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll
Modified: llvm/trunk/test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll?rev=145343&r1=145342&r2=145343&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll (original)
+++ llvm/trunk/test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll Mon Nov 28 18:52:04 2011
@@ -3,9 +3,6 @@
; add219 should be extended to i64 because it is nsw, even though its
; sext cannot be hoisted outside the loop.
-; FIXME: GetExtendedOperandRecurrence has problems with the nsw bit on add exprs
-; XFAIL: *
-
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
define void @test() nounwind {
@@ -22,7 +19,7 @@
; CHECK: add nsw i64 %indvars.iv, 1
for.body170: ; preds = %for.body170, %for.body153
- %i2.19 = phi i32 [ %add249, %for.body170 ], [ undef, %for.body153 ]
+ %i2.19 = phi i32 [ %add249, %for.body170 ], [ 0, %for.body153 ]
%add219 = add nsw i32 %i2.19, 1
%idxprom220 = sext i32 %add219 to i64
%add249 = add nsw i32 %i2.19, %shl132
More information about the llvm-commits
mailing list