[llvm] [RISCV] Consolidate VLS codepaths in stack frame manipulation [nfc] (PR #117605)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 25 10:44:04 PST 2024
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 d3ce069572cb565da613df9828ac54f7edb2fc00 59a08f018ebd9d7db4290650a4bdc48da0dda8d6 --extensions h,cpp -- llvm/lib/Target/RISCV/RISCVFrameLowering.cpp llvm/lib/Target/RISCV/RISCVFrameLowering.h llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp b/llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
index 589c2846dd..7ee86940a6 100644
--- a/llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
+++ b/llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
@@ -195,7 +195,7 @@ void RISCVRegisterInfo::adjustReg(MachineBasicBlock &MBB,
const int64_t FixedOffset = NumOfVReg * VLENB;
if (!isInt<32>(FixedOffset)) {
report_fatal_error(
- "Frame size outside of the signed 32-bit range not supported");
+ "Frame size outside of the signed 32-bit range not supported");
}
Offset = StackOffset::getFixed(FixedOffset + Offset.getFixed());
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/117605
More information about the llvm-commits
mailing list