[PATCH] D152116: [X86] Transform `(icmp eq/ne (and X, C0), (shift X, C1))` to get better constants.

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 7 00:22:37 PDT 2023


goldstein.w.n updated this revision to Diff 529198.
goldstein.w.n added a comment.

Move to DAG Combiner and make preferences target specific.
Also handle rotates


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152116

Files:
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.h
  llvm/test/CodeGen/X86/cmp-shiftX-maskX.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152116.529198.patch
Type: text/x-patch
Size: 19498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230607/3638e46b/attachment.bin>


More information about the llvm-commits mailing list