[PATCH] D32686: [InstCombine][KnownBits] Use KnownBits better to detect nsw adds
Yoav Ben-Shalom via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 30 10:07:33 PDT 2017
yabash created this revision.
Change checkRippleForAdd from a heuristic to a full check -
if it is provable that the add does not overflow return true, otherwise false.
https://reviews.llvm.org/D32686
Files:
lib/Transforms/InstCombine/InstCombineAddSub.cpp
test/Transforms/InstCombine/AddOverFlow.ll
test/Transforms/InstCombine/demand_shrink_nsw.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32686.97237.patch
Type: text/x-patch
Size: 6792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170430/4afd86b2/attachment.bin>
More information about the llvm-commits
mailing list