aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/Target/RISCV
diff options
context:
space:
mode:
Diffstat (limited to 'backend/lib/Target/RISCV')
-rw-r--r--backend/lib/Target/RISCV/RISCVFrameLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/lib/Target/RISCV/RISCVFrameLowering.cpp b/backend/lib/Target/RISCV/RISCVFrameLowering.cpp
index 55447c9..8949b59 100644
--- a/backend/lib/Target/RISCV/RISCVFrameLowering.cpp
+++ b/backend/lib/Target/RISCV/RISCVFrameLowering.cpp
@@ -1448,7 +1448,7 @@ public:
if (Function.properties().has(MachineFunctionProperty::TracksLiveness)) {
for (const PhysicalRegister Reg : Saved) {
- if (Reg == *FP || Reg == *BP)
+ if (Function.registerInfo().isReserved(Reg))
continue;
auto LiveIn = SaveBlock->addLiveIn(Reg);
if (!LiveIn)