[llvm] a1db2c6 - [RISCV] Remove duplicate call to MFI.getStackID(FI). NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 21 16:53:48 PDT 2025
Author: Craig Topper
Date: 2025-04-21T16:53:22-07:00
New Revision: a1db2c64918efa3d74dfdb402b8cff30bc555521
URL: https://github.com/llvm/llvm-project/commit/a1db2c64918efa3d74dfdb402b8cff30bc555521
DIFF: https://github.com/llvm/llvm-project/commit/a1db2c64918efa3d74dfdb402b8cff30bc555521.diff
LOG: [RISCV] Remove duplicate call to MFI.getStackID(FI). NFC
Reuse existing local variable.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
index 89a9f7d871391..1fd1048bcebf8 100644
--- a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
@@ -1272,7 +1272,7 @@ RISCVFrameLowering::getFrameIndexReference(const MachineFunction &MF, int FI,
// |--------------------------|
// | VarSize objects |
// |--------------------------| <-- SP
- if (MFI.getStackID(FI) == TargetStackID::ScalableVector) {
+ if (StackID == TargetStackID::ScalableVector) {
assert(!RI->hasStackRealignment(MF) &&
"Can't index across variable sized realign");
// We don't expect any extra RVV alignment padding, as the stack size
More information about the llvm-commits
mailing list