diff options
author | Andrew Trick <atrick@apple.com> | 2011-11-29 00:52:04 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-11-29 00:52:04 +0000 |
commit | 45d7963950bdeea10aceb90c3e8eeb8ca8bc1dec (patch) | |
tree | 5e683adae400ee25076acf19ed83832954196ccd | |
parent | 4d36f6ab112004b403374000b8b67eb7de045efb (diff) |
Reenable this IndVars unit test.
SCEV can't optimize undef in all cases, which is a separate issue from this test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145343 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll b/test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll index a8b706e6e5..4ad63aaa94 100644 --- a/test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll +++ b/test/Transforms/IndVarSimplify/2011-09-10-widen-nsw.ll @@ -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 @@ for.body153: ; preds = %for.body153, %for.b ; 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 |