[llvm] [X86] Combine `store + vselect` to `masked_store` (PR #145176)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 22 17:53:15 PDT 2025
================
@@ -53403,6 +53404,76 @@ static SDValue combineMaskedStore(SDNode *N, SelectionDAG &DAG,
return SDValue();
}
+static SDValue foldToMaskedStore(StoreSDNode *Store, SelectionDAG &DAG,
+ const SDLoc &Dl,
+ const X86Subtarget &Subtarget) {
+ using namespace llvm::SDPatternMatch;
+
+ if (!Subtarget.hasAVX() && !Subtarget.hasAVX2() && !Subtarget.hasAVX512())
----------------
phoebewang wrote:
Check `hasAVX` only.
https://github.com/llvm/llvm-project/pull/145176
More information about the llvm-commits
mailing list