[PATCH] D128216: [X86] Add SimplifyMultipleUseDemandedBitsForTargetNode X86ISD::ANDNP handling

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 10:47:03 PDT 2022


RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel, pengfei.
Herald added subscribers: jsji, armkevincheng, eric-k256, StephenFan, hiraditya.
Herald added a reviewer: sjarus.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added a project: LLVM.

See if we can remove X86ISD::ANDNP nodes by checking the state of the knownbits of the demanded elements.

This is equivalent to the generic ISD::AND handling, but flips the bits of the LHS operand to account for ANDNP.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128216

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/combine-udiv.ll
  llvm/test/CodeGen/X86/fpclamptosat_vec.ll
  llvm/test/CodeGen/X86/masked_store_trunc_usat.ll
  llvm/test/CodeGen/X86/psubus.ll
  llvm/test/CodeGen/X86/udiv_fix_sat.ll
  llvm/test/CodeGen/X86/vector-interleaved-load-i16-stride-5.ll
  llvm/test/CodeGen/X86/vector-trunc-usat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128216.438445.patch
Type: text/x-patch
Size: 167731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220620/270e4043/attachment-0001.bin>


More information about the llvm-commits mailing list