[llvm] afb3bd9 - RegAllocGreedy: Use TargetInstrInfo already in the class

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 15:59:30 PDT 2020


Author: Matt Arsenault
Date: 2020-07-01T18:58:59-04:00
New Revision: afb3bd9914fd39476630dcb521496cfbff7e12c9

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

LOG: RegAllocGreedy: Use TargetInstrInfo already in the class

Added: 
    

Modified: 
    llvm/lib/CodeGen/RegAllocGreedy.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index 82d5a9f554e1..41cf00261265 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -3147,7 +3147,6 @@ void RAGreedy::reportNumberOfSplillsReloads(MachineLoop *L, unsigned &Reloads,
   }
 
   const MachineFrameInfo &MFI = MF->getFrameInfo();
-  const TargetInstrInfo *TII = MF->getSubtarget().getInstrInfo();
   int FI;
 
   for (MachineBasicBlock *MBB : L->getBlocks())


        


More information about the llvm-commits mailing list