[clang] [llvm] [RISCV] Xqccmp Code Generation (PR #128815)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 27 17:28:40 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 6e7f04266c5f729cf4bc5546e2bf29aad3e695f1 ee917b49d67aac155334e8c8ef33173788e6f649 --extensions cpp,h -- llvm/lib/Target/RISCV/RISCVFrameLowering.cpp llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.cpp llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h llvm/lib/Target/RISCV/RISCVMoveMerger.cpp llvm/lib/Target/RISCV/RISCVPushPopOptimizer.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 99aca6fb97..492fe7c85d 100644
--- a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
@@ -983,10 +983,12 @@ void RISCVFrameLowering::emitPrologue(MachineFunction &MF,
// Xqxxmp with hasFP will update FP using `qc.cm.pushfp`, so we don't need
// to update it again, but we do need to emit the `.cfi_def_cfa` below.
- if (RVFI->getPushPopKind(MF) != RISCVMachineFunctionInfo::PushPopKind::VendorXqccmp) {
- RI->adjustReg(MBB, MBBI, DL, FPReg, SPReg,
- StackOffset::getFixed(RealStackSize - RVFI->getVarArgsSaveSize()),
- MachineInstr::FrameSetup, getStackAlign());
+ if (RVFI->getPushPopKind(MF) !=
+ RISCVMachineFunctionInfo::PushPopKind::VendorXqccmp) {
+ RI->adjustReg(
+ MBB, MBBI, DL, FPReg, SPReg,
+ StackOffset::getFixed(RealStackSize - RVFI->getVarArgsSaveSize()),
+ MachineInstr::FrameSetup, getStackAlign());
}
// Emit ".cfi_def_cfa $fp, RVFI->getVarArgsSaveSize()"
``````````
</details>
https://github.com/llvm/llvm-project/pull/128815
More information about the llvm-commits
mailing list