[PATCH] [IndVarSimplify] use the "canonical" way to infer no-wrap.

Sanjoy Das sanjoy at playingwithpointers.com
Sat Feb 28 22:39:18 PST 2015


Hi atrick, majnemer,

rL225282 introduced an ad-hoc way to promote some additions to nuw or
nsw.  Since then SCEV has become smarter in directly proving no-wrap;
and using the canonical "ext(A op B) == ext(A) op ext(B)" method of
proving no-wrap is just as powerful now.  Rip out the existing
complexity in favor of getting SCEV to do all the heaving lifting
internally.

This change does not add any unit tests because it is supposed to be a
non-functional change.  Tests added in rL225282 and rL226075 are valid
tests for this change.

http://reviews.llvm.org/D7981

Files:
  lib/Transforms/Utils/SimplifyIndVar.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7981.20951.patch
Type: text/x-patch
Size: 5647 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150301/de5d05ec/attachment.bin>


More information about the llvm-commits mailing list