[llvm] [MIPS] Support MIPS I hard-float double loads/stores with LWC1/SWC1 (PR #209362)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 00:35:39 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/Mips/MipsSEISelDAGToDAG.cpp llvm/lib/Target/Mips/MipsSEISelLowering.cpp llvm/lib/Target/Mips/MipsSEInstrInfo.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/Mips/MipsSEISelDAGToDAG.cpp b/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
index c61212dfe..a55182a0c 100644
--- a/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
@@ -310,14 +310,14 @@ bool MipsSEDAGToDAGISel::selectAddrFrameIndexOffset(
SDValue Opnd0 = Base.getOperand(1).getOperand(0);
if (isa<ConstantPoolSDNode>(Opnd0) || isa<JumpTableSDNode>(Opnd0))
Base = Base.getOperand(0);
- else if (isa<GlobalAddressSDNode>(Opnd0)) {
+ else if (isa<GlobalAddressSDNode>(Opnd0)) {
Base = Base.getOperand(0);
GlobalAddressSDNode *GA = dyn_cast<GlobalAddressSDNode>(Opnd0);
const GlobalValue *GV = GA->getGlobal();
int64_t GAOffset = GA->getOffset();
Offset = CurDAG->getTargetGlobalAddress(
- GV, SDLoc(Addr), MVT::i32, GAOffset + CN->getZExtValue(),
- MipsII::MO_ABS_LO);
+ GV, SDLoc(Addr), MVT::i32, GAOffset + CN->getZExtValue(),
+ MipsII::MO_ABS_LO);
return true;
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/209362
More information about the llvm-commits
mailing list