[llvm] [PowerPC] Utilize `getReservedRegs` to find asm clobberable registers. (PR #99766)
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 26 03:01:48 PDT 2024
================
@@ -2762,7 +2762,7 @@ void PPCFrameLowering::updateCalleeSaves(const MachineFunction &MF,
// Get the lowest numbered register for each class that actually needs
// to be saved.
MCPhysReg Cand = CSRegs[i];
- if (!SavedRegs.test(Cand))
+ if (!SavedRegs.test(Cand) || Cand == PPC::X2)
----------------
chenzheng1030 wrote:
nit: a comment here to indicate why X2 needs to be excluded? And also why R2 does not need to be execluded?
https://github.com/llvm/llvm-project/pull/99766
More information about the llvm-commits
mailing list