[PATCH] D145143: [DAGCombiner] Add fold for `~x & x` -> `0`

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 2 12:29:19 PST 2023


goldstein.w.n updated this revision to Diff 501948.
goldstein.w.n marked an inline comment as done.
goldstein.w.n added a comment.

Use new helper + `isBitwiseNot`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145143

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/X86/combine-and.ll
  llvm/test/CodeGen/X86/fold-masked-merge.ll
  llvm/test/CodeGen/X86/setcc-combine.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145143.501948.patch
Type: text/x-patch
Size: 4589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230302/bdcab512/attachment.bin>


More information about the llvm-commits mailing list