[PATCH] D145855: [X86] matchAddressRecursively - support zext(and(shl(x,c1)),c2) -> shl(zext(and(x, c2 >> c1),c1)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 11 12:28:33 PST 2023


RKSimon created this revision.
RKSimon added reviewers: pengfei, craig.topper, kazu, spatel.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added a project: LLVM.

This came about while investigating ways to handle D145468 <https://reviews.llvm.org/D145468> in a more generic manner, which involves trying harder to fold and(zext(x),c) -> zext(and(x,c))

Alive2: https://alive2.llvm.org/ce/z/7fXtDt (generic fold)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145855

Files:
  llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
  llvm/test/CodeGen/X86/lea-dagdag.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145855.504389.patch
Type: text/x-patch
Size: 4519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230311/c2e11201/attachment.bin>


More information about the llvm-commits mailing list