[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
Tue Jan 17 14:05:44 PST 2017
spatel updated this revision to Diff 84742.
spatel edited the summary of this revision.
spatel added a comment.
Handle sgt, sle (slt), eq/ne in one patch to match the existing and related 'shl nuw' folds.
I added tests for sle with https://reviews.llvm.org/rL292248 and refactored with https://reviews.llvm.org/rL292260.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10526 bytes
Desc: not available
More information about the llvm-commits