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

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 08:39:44 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) ||
----------------
222rohan wrote:

This seems like the simplest approach, not sure how I missed this call. 

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


More information about the llvm-commits mailing list