[llvm] [Mips] Add support for Mips::GPR64Idx in MipsRegisterBankInfo (PR #173534)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 26 00:28:32 PST 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 origin/main HEAD --extensions cpp,h -- llvm/lib/Target/Mips/MipsInstructionSelector.cpp llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp llvm/lib/Target/Mips/MipsRegisterBankInfo.h --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/MipsRegisterBankInfo.cpp b/llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp
index d98e60d7b..7847cef5a 100644
--- a/llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp
+++ b/llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp
@@ -403,7 +403,7 @@ MipsRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
assert((GPRSize == 32 || GPRSize == 64) && "Unexpected GPR size");
const ValueMapping *GPRValueMapping =
GPRSize == 32 ? &Mips::ValueMappings[Mips::GPR32Idx]
- : &Mips::ValueMappings[Mips::GPR64Idx];
+ : &Mips::ValueMappings[Mips::GPR64Idx];
unsigned MappingID = DefaultMappingID;
// Check if LLT sizes match sizes of available register banks.
``````````
</details>
https://github.com/llvm/llvm-project/pull/173534
More information about the llvm-commits
mailing list