Skip to content

Commit a1db2c6

Browse files
committed
[RISCV] Remove duplicate call to MFI.getStackID(FI). NFC
Reuse existing local variable.
1 parent d5b40c7 commit a1db2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVFrameLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ RISCVFrameLowering::getFrameIndexReference(const MachineFunction &MF, int FI,
12721272
// |--------------------------|
12731273
// | VarSize objects |
12741274
// |--------------------------| <-- SP
1275-
if (MFI.getStackID(FI) == TargetStackID::ScalableVector) {
1275+
if (StackID == TargetStackID::ScalableVector) {
12761276
assert(!RI->hasStackRealignment(MF) &&
12771277
"Can't index across variable sized realign");
12781278
// We don't expect any extra RVV alignment padding, as the stack size

0 commit comments

Comments
 (0)