Remove unneeded #includes
authorChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 21:22:28 +0000 (21:22 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 21:22:28 +0000 (21:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@489 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/InstrSched/SchedPriorities.cpp
lib/Target/SparcV9/InstrSched/SchedPriorities.cpp

index fe039cc2a7b4e29eabc6ae2f9373dc9e43115f2d..c09f9fc24e585e0be5a9672831e97f9d9c6eb5f8 100644 (file)
  *     7/30/01  -  Vikram Adve  -  Created
  ***************************************************************************/
 
-//************************** System Include Files **************************/
-
-#include <hash_map>
-#include <vector>
-#include <algorithm>
-#include <sys/types.h>
-
-//*************************** User Include Files ***************************/
-
-#include "llvm/Method.h"
-#include "llvm/CodeGen/MachineInstr.h"
-#include "llvm/CodeGen/InstrScheduling.h"
 #include "llvm/CodeGen/SchedPriorities.h"
 
-//************************* Forward Declarations ***************************/
-
 
-/*ctor*/
 SchedPriorities::SchedPriorities(const Method* method,
                                 const SchedGraph* _graph)
   : curTime(0),
@@ -219,7 +204,7 @@ SchedPriorities::getNextHighest(const SchedulingManager& S,
       // it becomes empty.
       nextChoice = candsAsHeap.getNode(mcands[nextIdx]);
       if (getEarliestForNodeRef(nextChoice) > curTime
-         || ! instrIsFeasible(S, nextChoice->getOpCode()))
+         || ! instrIsFeasible(S, nextChoice->getMachineInstr()->getOpCode()))
        {
          mcands.erase(mcands.begin() + nextIdx);
          nextIdx = -1;
@@ -255,8 +240,7 @@ SchedPriorities::findSetWithMaxDelay(vector<candIndex>& mcands,
       
       if (SchedDebugLevel >= Sched_PrintSchedTrace)
        {
-         printIndent(2);
-         cout << "Cycle " << this->getTime() << ": "
+         cout << "    Cycle " << this->getTime() << ": "
               << "Next highest delay = " << maxDelay << " : "
               << mcands.size() << " Nodes with this delay: ";
          for (unsigned i=0; i < mcands.size(); i++)
index fe039cc2a7b4e29eabc6ae2f9373dc9e43115f2d..c09f9fc24e585e0be5a9672831e97f9d9c6eb5f8 100644 (file)
  *     7/30/01  -  Vikram Adve  -  Created
  ***************************************************************************/
 
-//************************** System Include Files **************************/
-
-#include <hash_map>
-#include <vector>
-#include <algorithm>
-#include <sys/types.h>
-
-//*************************** User Include Files ***************************/
-
-#include "llvm/Method.h"
-#include "llvm/CodeGen/MachineInstr.h"
-#include "llvm/CodeGen/InstrScheduling.h"
 #include "llvm/CodeGen/SchedPriorities.h"
 
-//************************* Forward Declarations ***************************/
-
 
-/*ctor*/
 SchedPriorities::SchedPriorities(const Method* method,
                                 const SchedGraph* _graph)
   : curTime(0),
@@ -219,7 +204,7 @@ SchedPriorities::getNextHighest(const SchedulingManager& S,
       // it becomes empty.
       nextChoice = candsAsHeap.getNode(mcands[nextIdx]);
       if (getEarliestForNodeRef(nextChoice) > curTime
-         || ! instrIsFeasible(S, nextChoice->getOpCode()))
+         || ! instrIsFeasible(S, nextChoice->getMachineInstr()->getOpCode()))
        {
          mcands.erase(mcands.begin() + nextIdx);
          nextIdx = -1;
@@ -255,8 +240,7 @@ SchedPriorities::findSetWithMaxDelay(vector<candIndex>& mcands,
       
       if (SchedDebugLevel >= Sched_PrintSchedTrace)
        {
-         printIndent(2);
-         cout << "Cycle " << this->getTime() << ": "
+         cout << "    Cycle " << this->getTime() << ": "
               << "Next highest delay = " << maxDelay << " : "
               << mcands.size() << " Nodes with this delay: ";
          for (unsigned i=0; i < mcands.size(); i++)