llvm.org GIT mirror llvm / 45d7963
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 Andrew Trick 8 years ago
1 changed file(s) with 1 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
11 ; Test WidenIV::GetExtendedOperandRecurrence.
22 ; add219 should be extended to i64 because it is nsw, even though its
33 ; sext cannot be hoisted outside the loop.
4
5 ; FIXME: GetExtendedOperandRecurrence has problems with the nsw bit on add exprs
6 ; XFAIL: *
74
85 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"
96
2118
2219 ; CHECK: add nsw i64 %indvars.iv, 1
2320 for.body170: ; preds = %for.body170, %for.body153
24 %i2.19 = phi i32 [ %add249, %for.body170 ], [ undef, %for.body153 ]
21 %i2.19 = phi i32 [ %add249, %for.body170 ], [ 0, %for.body153 ]
2522 %add219 = add nsw i32 %i2.19, 1
2623 %idxprom220 = sext i32 %add219 to i64
2724 %add249 = add nsw i32 %i2.19, %shl132