[PATCH] D153148: [InstCombine] Fold `(-1 + A) & B` into `A ? 0 : B` where A is effectively a bool

Yingwei Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 25 20:28:25 PDT 2023


dtcxzyw updated this revision to Diff 534416.
dtcxzyw added a comment.

- Rebase
- Address comments


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153148

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/binop-cast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153148.534416.patch
Type: text/x-patch
Size: 4356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230626/8d48169a/attachment.bin>


More information about the llvm-commits mailing list