Skip to content

Commit 1f61507

Browse files
author
Chen Zheng
committed
[NFC][PowerPC] remove the redundant spill related flags setting
1 parent 4d566e5 commit 1f61507

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

llvm/lib/Target/PowerPC/PPCInstrInfo.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,14 +1973,6 @@ void PPCInstrInfo::LoadRegFromStackSlot(MachineFunction &MF, const DebugLoc &DL,
19731973
unsigned Opcode = getLoadOpcodeForSpill(RC);
19741974
NewMIs.push_back(addFrameReference(BuildMI(MF, DL, get(Opcode), DestReg),
19751975
FrameIdx));
1976-
PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>();
1977-
1978-
if (PPC::CRRCRegClass.hasSubClassEq(RC) ||
1979-
PPC::CRBITRCRegClass.hasSubClassEq(RC))
1980-
FuncInfo->setSpillsCR();
1981-
1982-
if (isXFormMemOp(Opcode))
1983-
FuncInfo->setHasNonRISpills();
19841976
}
19851977

19861978
void PPCInstrInfo::loadRegFromStackSlotNoUpd(
@@ -1992,9 +1984,6 @@ void PPCInstrInfo::loadRegFromStackSlotNoUpd(
19921984
DebugLoc DL;
19931985
if (MI != MBB.end()) DL = MI->getDebugLoc();
19941986

1995-
PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>();
1996-
FuncInfo->setHasSpills();
1997-
19981987
LoadRegFromStackSlot(MF, DL, DestReg, FrameIdx, RC, NewMIs);
19991988

20001989
for (unsigned i = 0, e = NewMIs.size(); i != e; ++i)

0 commit comments

Comments
 (0)