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

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 08:48:13 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp -- llvm/lib/Target/ARM/ARMISelLowering.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 93e68bf7c..5d5ee7af7 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -16978,9 +16978,9 @@ static SDValue PerformExtractFpToIntStores(StoreSDNode *St, SelectionDAG &DAG) {
 }
 
 // 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.
+// (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)
@@ -17027,8 +17027,7 @@ static SDValue PerformLegalizedInterleavedStoreCombine(
       DAG.getTargetConstant(NEONStores[NumParts - 2], DL, MVT::i64),
       BaseStore->getBasePtr()};
   Ops.append(Interleave->op_begin(), Interleave->op_end());
-  Ops.push_back(
-      DAG.getConstant(BaseStore->getAlign().value(), DL, MVT::i32));
+  Ops.push_back(DAG.getConstant(BaseStore->getAlign().value(), DL, MVT::i32));
 
   EVT MemVT =
       EVT::getVectorVT(*DAG.getContext(), SubVecTy.getVectorElementType(),
@@ -17075,8 +17074,7 @@ static SDValue PerformInterleavedStoreCombine(
   if (!DCI.isBeforeLegalize())
     return SDValue();
 
-  if (!ISD::isNormalStore(ST) || !ST->isSimple() ||
-      !ST->getOffset().isUndef())
+  if (!ISD::isNormalStore(ST) || !ST->isSimple() || !ST->getOffset().isUndef())
     return SDValue();
 
   SDValue WideValue = ST->getValue();
@@ -17111,12 +17109,11 @@ static SDValue PerformInterleavedStoreCombine(
   Ops.append(ValueInterleaveOps);
   Ops.push_back(DAG.getConstant(ST->getAlign().value(), DL, MVT::i32));
 
-  return DAG.getMemIntrinsicNode(
-      ISD::INTRINSIC_VOID, DL, DAG.getVTList(MVT::Other), Ops,
-      ST->getMemoryVT(), ST->getMemOperand());
+  return DAG.getMemIntrinsicNode(ISD::INTRINSIC_VOID, DL,
+                                 DAG.getVTList(MVT::Other), Ops,
+                                 ST->getMemoryVT(), ST->getMemOperand());
 }
 
-
 /// PerformSTORECombine - Target-specific dag combine xforms for
 /// ISD::STORE.
 static SDValue PerformSTORECombine(SDNode *N,

``````````

</details>


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


More information about the llvm-commits mailing list