[PATCH] D113510: [InstCombine] Strip offset when folding and/or of icmps

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 10 09:03:38 PST 2021


nikic updated this revision to Diff 386192.
nikic added a comment.

Rebase over test with signed preds (https://alive2.llvm.org/ce/z/qv9MZr), drop outdated comment.

I actually thought that we were already canonicalizing signed range checks to unsigned ones, but apparently we aren't.


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

https://reviews.llvm.org/D113510

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/and-or-icmps.ll
  llvm/test/Transforms/InstCombine/or.ll
  llvm/test/Transforms/InstCombine/signed-truncation-check.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113510.386192.patch
Type: text/x-patch
Size: 11342 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211110/0633a72a/attachment.bin>


More information about the llvm-commits mailing list