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.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D6914
Fix PR22179 ClosedPublic Authored by sanjoy on Jan 9 2015, 6:38 PM.
Details Summary 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.
Diff Detail Event Timelinesanjoy updated this object. This revision is now accepted and ready to land.Jan 10 2015, 2:42 PM
Revision Contents
Diff 17968 lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/pr22179.ll
test/CodeGen/X86/avoid_complex_am.ll
|
The extra parens don't really add to readability here and the expression is formatted a little funny, consider using clang-format here.