]> granicus.if.org Git - llvm/commit
Fix PR22179.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 10 Jan 2015 23:41:24 +0000 (23:41 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 10 Jan 2015 23:41:24 +0000 (23:41 +0000)
commit7f0da20b979684eccea1a389996804d345fe6a17
treeec257c8638e86447755eb20e2a8c7cc99df042a5
parent3073d3960a7afd74c3dbf95b4832274480d6dea4
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225591 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/pr22179.ll [new file with mode: 0644]
test/CodeGen/AArch64/arm64-scaled_iv.ll
test/CodeGen/X86/avoid_complex_am.ll