[PATCH] D154791: [InstCombine] Transform bitwise (A >> C - 1, zext(icmp)) -> zext (bitwise(A < 0, icmp)) fold.

Hongyu Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 19:14:28 PDT 2023


XChy updated this revision to Diff 541812.
XChy marked 4 inline comments as done.
XChy set the repository for this revision to rG LLVM Github Monorepo.
XChy added a comment.

Produce `zext(bitwise(icmp.icmp))`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154791

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154791.541812.patch
Type: text/x-patch
Size: 15780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230719/8feb79a8/attachment.bin>


More information about the llvm-commits mailing list