[llvm] [RISCVGatherScatterLowering] Support vp_gather and vp_scatter (PR #73612)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 27 20:44:26 PST 2023
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 ffcc5c7796b00dd7f945cb2a1bd30399f616c6b0 12c50c30d4963051836016978297ddfe3c2dcb47 -- llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp b/llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
index 973b970f8c..4ef9d84309 100644
--- a/llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
@@ -563,8 +563,8 @@ bool RISCVGatherScatterLowering::runOnFunction(Function &F) {
else if (II->getIntrinsicID() == Intrinsic::vp_gather)
MA = II->getAttributes().getParamAttrs(0).getAlignment();
- Changed |= tryCreateStridedLoadStore(
- II, II->getType(), II->getArgOperand(0), MA);
+ Changed |=
+ tryCreateStridedLoadStore(II, II->getType(), II->getArgOperand(0), MA);
}
for (auto *II : Scatters) {
@@ -573,9 +573,8 @@ bool RISCVGatherScatterLowering::runOnFunction(Function &F) {
else if (II->getIntrinsicID() == Intrinsic::vp_scatter)
MA = II->getAttributes().getParamAttrs(1).getAlignment();
- Changed |=
- tryCreateStridedLoadStore(II, II->getArgOperand(0)->getType(),
- II->getArgOperand(1), MA);
+ Changed |= tryCreateStridedLoadStore(II, II->getArgOperand(0)->getType(),
+ II->getArgOperand(1), MA);
}
// Remove any dead phis.
``````````
</details>
https://github.com/llvm/llvm-project/pull/73612
More information about the llvm-commits
mailing list