[PATCH] D11836: [ARM] Remove an unused instance of MachineRegisterInfo from the load/store optimization pass.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 7 08:38:52 PDT 2015


mcrosier created this revision.
mcrosier added reviewers: MatzeB, t.p.northover, Gerolf.
mcrosier added a subscriber: llvm-commits.
mcrosier set the repository for this revision to rL LLVM.
Herald added subscribers: rengolin, aemerson.

Seems obvious, but I wanted to make sure I wasn't missing something.

Repository:
  rL LLVM

http://reviews.llvm.org/D11836

Files:
  lib/Target/ARM/ARMLoadStoreOptimizer.cpp

Index: lib/Target/ARM/ARMLoadStoreOptimizer.cpp
===================================================================
--- lib/Target/ARM/ARMLoadStoreOptimizer.cpp
+++ lib/Target/ARM/ARMLoadStoreOptimizer.cpp
@@ -78,7 +78,6 @@
     const MachineFunction *MF;
     const TargetInstrInfo *TII;
     const TargetRegisterInfo *TRI;
-    const MachineRegisterInfo *MRI;
     const ARMSubtarget *STI;
     const TargetLowering *TL;
     ARMFunctionInfo *AFI;
@@ -1825,7 +1824,7 @@
   AFI = Fn.getInfo<ARMFunctionInfo>();
   TII = STI->getInstrInfo();
   TRI = STI->getRegisterInfo();
-  MRI = &Fn.getRegInfo();
+
   RegClassInfoValid = false;
   isThumb2 = AFI->isThumb2Function();
   isThumb1 = AFI->isThumbFunction() && !isThumb2;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11836.31517.patch
Type: text/x-patch
Size: 724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150807/092b5dbd/attachment.bin>


More information about the llvm-commits mailing list