[PATCH] D25913: [InstCombine] Fold nuw left-shifts in `ugt`/`ule` comparisons.

bryant via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 28 11:33:44 PDT 2016


bryant updated this revision to Diff 76222.
bryant added a comment.

- Comment fixes. `-1 => ~0u`.
- Add sanity assertion for ult.


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.76222.patch
Type: text/x-patch
Size: 5032 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161028/f739c2fb/attachment.bin>


More information about the llvm-commits mailing list