[llvm] [ARM] Add combine for vector_interleave operation (PR #225818)

David Green via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 03:30:15 PDT 2026


================
@@ -16977,6 +16977,146 @@ static SDValue PerformExtractFpToIntStores(StoreSDNode *St, SelectionDAG &DAG) {
   return Store;
 }
 
+// Combine stores of all VECTOR_INTERLEAVE results into a structured store
+// (vstN) when they access consecutive memory. Running this after type legalization
+// let wider vector types to be splitted into legal types, so each split can form
+// structured store.
+static SDValue PerformLegalizedInterleavedStoreCombine(
+    StoreSDNode *ST, TargetLowering::DAGCombinerInfo &DCI, SelectionDAG &DAG) {
+  if (DCI.getDAGCombineLevel() < AfterLegalizeTypes)
+    return SDValue();
+
+  SDValue StoredValue = ST->getValue();
----------------
davemgreen wrote:

Does this check `  if (!ISD::isNormalStore(ST) || !ST->isSimple() || !ST->getOffset().isUndef())` like the other path?

Is this tested at the moment?

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


More information about the llvm-commits mailing list