[PATCH] D28406: [InstCombine] icmp sgt (shl nsw X, C1), C0 --> icmp sgt X, C0 >> C1
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 18 08:58:09 PST 2017
spatel updated this revision to Diff 84846.
spatel added a comment.
Add asserts for eq/ne compares (both for the existing NUW path and the NSW path that's being added here) to make it clear what the pre-conditions for these folds are.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11934 bytes
Desc: not available
More information about the llvm-commits