[llvm] [RISCV] Correct alignment of one-active (de)interleave cases (PR #150052)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 09:24:55 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/RISCV/RISCVInterleavedAccess.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVInterleavedAccess.cpp b/llvm/lib/Target/RISCV/RISCVInterleavedAccess.cpp
index 878401ef4..513dbf2ae 100644
--- a/llvm/lib/Target/RISCV/RISCVInterleavedAccess.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInterleavedAccess.cpp
@@ -304,9 +304,10 @@ bool RISCVTargetLowering::lowerInterleavedStore(StoreInst *SI,
         Intrinsic::experimental_vp_strided_store,
         {Data->getType(), BasePtr->getType(), Stride->getType()},
         {Data, BasePtr, Stride, Mask, VL});
-    Align Alignment = commonAlignment(SI->getAlign(), Index * ScalarSizeInBytes);
-    CI->addParamAttr(
-        1, Attribute::getWithAlignment(CI->getContext(), Alignment));
+    Align Alignment =
+        commonAlignment(SI->getAlign(), Index * ScalarSizeInBytes);
+    CI->addParamAttr(1,
+                     Attribute::getWithAlignment(CI->getContext(), Alignment));
 
     return true;
   }

``````````

</details>


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


More information about the llvm-commits mailing list