1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[PowerPC] Fold another unused variable into assertion. NFC.

llvm-svn: 365237
This commit is contained in:
Benjamin Kramer 2019-07-05 19:58:39 +00:00
parent d618763cf5
commit 52adabb37a

View File

@ -1856,7 +1856,6 @@ void PPCFrameLowering::processFunctionBeforeFrameFinalized(MachineFunction &MF,
unsigned MinFPR = PPC::F31;
unsigned MinVR = Subtarget.hasSPE() ? PPC::S31 : PPC::V31;
PPCFunctionInfo *FI = MF.getInfo<PPCFunctionInfo>();
bool HasGPSaveArea = false;
bool HasG8SaveArea = false;
bool HasFPSaveArea = false;
@ -1870,7 +1869,8 @@ void PPCFrameLowering::processFunctionBeforeFrameFinalized(MachineFunction &MF,
for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
unsigned Reg = CSI[i].getReg();
assert((!FI->mustSaveTOC() || (Reg != PPC::X2 && Reg != PPC::R2)) &&
assert((!MF.getInfo<PPCFunctionInfo>()->mustSaveTOC() ||
(Reg != PPC::X2 && Reg != PPC::R2)) &&
"Not expecting to try to spill R2 in a function that must save TOC");
if (PPC::GPRCRegClass.contains(Reg) ||
PPC::SPE4RCRegClass.contains(Reg)) {