[llvm-branch-commits] [llvm] [LoongArch] Load scalars into vector lane 0 with FLD/VLDREPL (PR #234119)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Nov 3 01:32:21 PST 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/LoongArch/LoongArchISelLowering.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/LoongArch/LoongArchISelLowering.cpp b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
index 6fcf424ca..8d55c0f12 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -4113,10 +4113,9 @@ LoongArchTargetLowering::lowerINSERT_VECTOR_ELT(SDValue Op,
MVT FltVT = MVT::getFloatingPointVT(EltSizeInBits);
// Don't reuse the memory operand, its range metadata (if any) only
// applies to integer loads.
- SDValue Ld = DAG.getLoad(FltVT, DL, LN->getChain(), LN->getBasePtr(),
- LN->getPointerInfo(), LN->getAlign(),
- LN->getMemOperand()->getFlags(),
- LN->getAAInfo());
+ SDValue Ld = DAG.getLoad(
+ FltVT, DL, LN->getChain(), LN->getBasePtr(), LN->getPointerInfo(),
+ LN->getAlign(), LN->getMemOperand()->getFlags(), LN->getAAInfo());
Res = DAG.getNode(ISD::SCALAR_TO_VECTOR, DL,
MVT::getVectorVT(FltVT, NumElts), Ld);
Res = DAG.getBitcast(VT, Res);
``````````
</details>
https://github.com/llvm/llvm-project/pull/234119
More information about the llvm-branch-commits
mailing list