Remove redundant private field.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 14 Sep 2012 12:19:58 +0000 (12:19 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 14 Sep 2012 12:19:58 +0000 (12:19 +0000)
clang warned about this being unused in Release builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163899 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonMachineScheduler.cpp
lib/Target/Hexagon/HexagonMachineScheduler.h

index 838f7b5ed77ab28b3d6c50cd54476d11841acca5..3e4b5b6eccd6312797a8e7e5854234b4057b9111 100644 (file)
@@ -123,7 +123,7 @@ void VLIWMachineScheduler::schedule() {
         << "********** MI Converging Scheduling VLIW BB#" << BB->getNumber()
         << " " << BB->getName()
         << " in_func " << BB->getParent()->getFunction()->getName()
-        << " at loop depth "  << MLI->getLoopDepth(BB)
+        << " at loop depth "  << MLI.getLoopDepth(BB)
         << " \n");
 
   buildDAGWithRegPressure();
index 212cc9800bd6082cad48766d1830b297ae0a8766..51829742fff21f03106a34c1cccfd578c23460f6 100644 (file)
@@ -107,10 +107,9 @@ public:
 /// Extend the standard ScheduleDAGMI to provide more context and override the
 /// top-level schedule() driver.
 class VLIWMachineScheduler : public ScheduleDAGMI {
-  const MachineLoopInfo *MLI;
 public:
   VLIWMachineScheduler(MachineSchedContext *C, MachineSchedStrategy *S):
-    ScheduleDAGMI(C, S), MLI(C->MLI) {}
+    ScheduleDAGMI(C, S) {}
 
   /// Schedule - This is called back from ScheduleDAGInstrs::Run() when it's
   /// time to do some work.