[llvm] 1f61507 - [NFC][PowerPC] remove the redundant spill related flags setting

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 20:07:52 PST 2024


Author: Chen Zheng
Date: 2024-01-18T23:07:42-05:00
New Revision: 1f61507401995b434a0720d3f9869659466d9b31

URL: https://github.com/llvm/llvm-project/commit/1f61507401995b434a0720d3f9869659466d9b31
DIFF: https://github.com/llvm/llvm-project/commit/1f61507401995b434a0720d3f9869659466d9b31.diff

LOG: [NFC][PowerPC] remove the redundant spill related flags setting

Added: 
    

Modified: 
    llvm/lib/Target/PowerPC/PPCInstrInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index 538e0e6b3d420c2..15f6b65dea83c49 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -1973,14 +1973,6 @@ void PPCInstrInfo::LoadRegFromStackSlot(MachineFunction &MF, const DebugLoc &DL,
   unsigned Opcode = getLoadOpcodeForSpill(RC);
   NewMIs.push_back(addFrameReference(BuildMI(MF, DL, get(Opcode), DestReg),
                                      FrameIdx));
-  PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>();
-
-  if (PPC::CRRCRegClass.hasSubClassEq(RC) ||
-      PPC::CRBITRCRegClass.hasSubClassEq(RC))
-    FuncInfo->setSpillsCR();
-
-  if (isXFormMemOp(Opcode))
-    FuncInfo->setHasNonRISpills();
 }
 
 void PPCInstrInfo::loadRegFromStackSlotNoUpd(
@@ -1992,9 +1984,6 @@ void PPCInstrInfo::loadRegFromStackSlotNoUpd(
   DebugLoc DL;
   if (MI != MBB.end()) DL = MI->getDebugLoc();
 
-  PPCFunctionInfo *FuncInfo = MF.getInfo<PPCFunctionInfo>();
-  FuncInfo->setHasSpills();
-
   LoadRegFromStackSlot(MF, DL, DestReg, FrameIdx, RC, NewMIs);
 
   for (unsigned i = 0, e = NewMIs.size(); i != e; ++i)


        


More information about the llvm-commits mailing list