aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-05-13 12:33:30 -0700
committerCraig Topper <craig.topper@sifive.com>2024-05-13 12:58:30 -0700
commitc3028a230557405b0f10bdd7d450f7f92747bbe3 (patch)
tree99d81a450b21a7375797ac8ad9f647318747db07 /llvm/lib/IR/Module.cpp
parenta6d7828f4c50c1ec7b0b5f61fe59d7a768175dcc (diff)
downloadllvm-c3028a230557405b0f10bdd7d450f7f92747bbe3.zip
llvm-c3028a230557405b0f10bdd7d450f7f92747bbe3.tar.gz
llvm-c3028a230557405b0f10bdd7d450f7f92747bbe3.tar.bz2
[RISCV] Don't exlude the frame pointer from the callee saved registers in RISCVRegisterInfo::needsFrameBaseReg.
Instead of using getReservedRegs, just check the subtarget reserved list. getReservedRegs considers the frame pointer to be reserved when it is being used, but we do need to save/restore it so it should be counted as a callee saved register. AArch64 hardcodes their callee saved size, but the comment mentions the Frame Pointer being counted.
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions