[PATCH] D25913: [InstCombine] Fold nuw left-shifts in `ugt`/`ule` comparisons.
bryant via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 26 13:30:33 PDT 2016
bryant updated this revision to Diff 75939.
bryant added a comment.
- replaced non-zero check for c with note in comments.
- added derivation of ult case in comments.
- use `icmp-shl-nuw.ll` instead of `icmp-shl-zext-simplify.ll`
- added non-zero constant vector and non-pow2 shift test cases.
Repository:
rL LLVM
https://reviews.llvm.org/D25913
Files:
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/icmp-shl-nuw.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25913.75939.patch
Type: text/x-patch
Size: 4871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161026/3ef69ef1/attachment.bin>
More information about the llvm-commits
mailing list