[PATCH] D138521: [X86] Support ANDNP combine through broadcast instructions with scalar input

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 05:32:36 PST 2022


RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.

LGTM with one minor comment - cheers



================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:48218
+          DAG.getNode(ISD::INSERT_VECTOR_ELT, SDLoc(IVEN), IVEN.getValueType(),
+                      IVEN.getOperand(0), Not, IVEN.getOperand(2));
+      return DAG.getVectorShuffle(SVN->getValueType(0), SDLoc(SVN), NotIVEN,
----------------
You might need to bitcast this back to Src.getValueType() - its less likely for scalars but IsNOT can peek through bitcasts


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138521



More information about the llvm-commits mailing list