[llvm] [RISCV] Use implicit def/use of SP for PROBED_STACKALLOC*. (PR #139153)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 13:48:31 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 -- llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
index 68907ba4a..37caf25cc 100644
--- a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
@@ -827,8 +827,7 @@ void RISCVFrameLowering::allocateStack(MachineBasicBlock &MBB,
}
// It will be expanded to a probe loop in `inlineStackProbe`.
- BuildMI(MBB, MBBI, DL, TII->get(RISCV::PROBED_STACKALLOC))
- .addReg(TargetReg);
+ BuildMI(MBB, MBBI, DL, TII->get(RISCV::PROBED_STACKALLOC)).addReg(TargetReg);
if (EmitCFI) {
// Set the CFA register back to SP.
``````````
</details>
https://github.com/llvm/llvm-project/pull/139153
More information about the llvm-commits
mailing list