diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-01-10 23:41:24 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-01-10 23:41:24 +0000 |
commit | 81401d4b1916e0a5263dde44fea0e6281e0b2383 (patch) | |
tree | 4c171910aad4cfd6228faa41594044ef1a61b511 /llvm/test/CodeGen/X86/avoid_complex_am.ll | |
parent | 8a36a8e5d41eafcfe0814335108ff8f9b476d447 (diff) | |
download | bcm5719-llvm-81401d4b1916e0a5263dde44fea0e6281e0b2383.tar.gz bcm5719-llvm-81401d4b1916e0a5263dde44fea0e6281e0b2383.zip |
Fix PR22179.
We were incorrectly inferring nsw for certain SCEVs. We can be more
aggressive here (see Richard Smith's comment on
http://llvm.org/bugs/show_bug.cgi?id=22179) but this change just
focuses on correctness.
Differential Revision: http://reviews.llvm.org/D6914
llvm-svn: 225591
Diffstat (limited to 'llvm/test/CodeGen/X86/avoid_complex_am.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/avoid_complex_am.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/avoid_complex_am.ll b/llvm/test/CodeGen/X86/avoid_complex_am.ll index 7f095190ab8..e5e7bd23a64 100644 --- a/llvm/test/CodeGen/X86/avoid_complex_am.ll +++ b/llvm/test/CodeGen/X86/avoid_complex_am.ll @@ -22,7 +22,7 @@ for.body: ; preds = %for.body, %entry %arrayidx = getelementptr inbounds double* %b, i64 %tmp %tmp1 = load double* %arrayidx, align 8 ; The induction variable should carry the scaling factor: 1. -; CHECK: [[IVNEXT]] = add nuw nsw i64 [[IV]], 1 +; CHECK: [[IVNEXT]] = add nuw i64 [[IV]], 1 %indvars.iv.next = add i64 %indvars.iv, 1 %arrayidx2 = getelementptr inbounds double* %c, i64 %indvars.iv.next %tmp2 = load double* %arrayidx2, align 8 |