diff options
Diffstat (limited to 'backend/lib')
| -rw-r--r-- | backend/lib/Target/RISCV/RISCVFrameLowering.cpp | 2 |
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) |
