[llvm] [LoongArch] Lower build_vector to broadcast load if possible (PR #135896)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 15 20:54:01 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,h -- llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp llvm/lib/Target/LoongArch/LoongArchISelLowering.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
index f392f8589..c4fa086fb 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -1751,7 +1751,7 @@ static SDValue lowerBUILD_VECTORAsBroadCastLoad(BuildVectorSDNode *BVOp,
}
IdentitySrc = BVOp->getOperand(0);
}
-
+
if (!BVOp->isOnlyUserOf(IdentitySrc))
return SDValue();
``````````
</details>
https://github.com/llvm/llvm-project/pull/135896
More information about the llvm-commits
mailing list