[llvm] [DAG][X86] Avoid slow masked-store folds on Zen (PR #214187)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 06:12:04 PDT 2026


================
@@ -24402,6 +24323,7 @@ static SDValue foldToMaskedStore(StoreSDNode *Store, SelectionDAG &DAG,
   const TargetLowering &TLI = DAG.getTargetLoweringInfo();
 
   if (!TLI.isOperationLegalOrCustom(ISD::MSTORE, VT) ||
+      !TLI.shouldFoldStoreToMaskedStore(VT) ||
----------------
RKSimon wrote:

Could we use `isTypeDesirableForOp(ISD::MSTORE, VT)` instead of adding yet another TLI callback?


https://github.com/llvm/llvm-project/pull/214187


More information about the llvm-commits mailing list