[PATCH] D141129: [InstCombine] Use KnownBits for lshr/add -> (a + b < a)

Pierre van Houtryve via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 02:39:14 PST 2023


Pierre-vh updated this revision to Diff 493882.
Pierre-vh marked 2 inline comments as done.
Pierre-vh added a comment.

- Only allow == ShAmt
- Add tests with 16/17 + 32/33 leading zeroes


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141129/new/

https://reviews.llvm.org/D141129

Files:
  llvm/include/llvm/Analysis/ValueTracking.h
  llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
  llvm/test/Transforms/InstCombine/shift-add.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141129.493882.patch
Type: text/x-patch
Size: 8797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230201/764e6d4b/attachment.bin>


More information about the llvm-commits mailing list