From f35f2fbbc29b593acfafb85846c4d83b90a505e7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 4 Feb 2002 16:35:45 +0000 Subject: [PATCH] Remove dependence on BBLiveVar from InstrScheduling Minor cleanups git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1688 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/InstrSched/InstrScheduling.cpp | 3 +-- lib/CodeGen/InstrSched/SchedPriorities.h | 7 +++---- lib/Target/SparcV9/InstrSched/InstrScheduling.cpp | 3 +-- lib/Target/SparcV9/InstrSched/SchedPriorities.h | 7 +++---- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/lib/CodeGen/InstrSched/InstrScheduling.cpp b/lib/CodeGen/InstrSched/InstrScheduling.cpp index 292c2c55e1c..09d0e40d80f 100644 --- a/lib/CodeGen/InstrSched/InstrScheduling.cpp +++ b/lib/CodeGen/InstrSched/InstrScheduling.cpp @@ -11,12 +11,11 @@ #include "llvm/CodeGen/InstrScheduling.h" -#include "llvm/Analysis/LiveVar/BBLiveVar.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineCodeForMethod.h" #include "llvm/Target/TargetMachine.h" -#include "Support/CommandLine.h" +#include "llvm/BasicBlock.h" #include "SchedPriorities.h" #include #include diff --git a/lib/CodeGen/InstrSched/SchedPriorities.h b/lib/CodeGen/InstrSched/SchedPriorities.h index 78b685dadde..884a049b94a 100644 --- a/lib/CodeGen/InstrSched/SchedPriorities.h +++ b/lib/CodeGen/InstrSched/SchedPriorities.h @@ -27,7 +27,7 @@ #include "llvm/Target/MachineSchedInfo.h" #include "Support/CommandLine.h" #include - +#include class Method; class MachineInstr; class SchedulingManager; @@ -76,10 +76,9 @@ public: typedef std::list::const_iterator const_iterator; public: - /*ctor*/ NodeHeap () : std::list(), _size(0) {} - /*dtor*/ ~NodeHeap () {} + NodeHeap() : _size(0) {} - inline unsigned int size () const { return _size; } + inline unsigned size() const { return _size; } const SchedGraphNode* getNode (const_iterator i) const { return (*i)->node; } cycles_t getDelay(const_iterator i) const { return (*i)->delay;} diff --git a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp index 292c2c55e1c..09d0e40d80f 100644 --- a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp +++ b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp @@ -11,12 +11,11 @@ #include "llvm/CodeGen/InstrScheduling.h" -#include "llvm/Analysis/LiveVar/BBLiveVar.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineCodeForMethod.h" #include "llvm/Target/TargetMachine.h" -#include "Support/CommandLine.h" +#include "llvm/BasicBlock.h" #include "SchedPriorities.h" #include #include diff --git a/lib/Target/SparcV9/InstrSched/SchedPriorities.h b/lib/Target/SparcV9/InstrSched/SchedPriorities.h index 78b685dadde..884a049b94a 100644 --- a/lib/Target/SparcV9/InstrSched/SchedPriorities.h +++ b/lib/Target/SparcV9/InstrSched/SchedPriorities.h @@ -27,7 +27,7 @@ #include "llvm/Target/MachineSchedInfo.h" #include "Support/CommandLine.h" #include - +#include class Method; class MachineInstr; class SchedulingManager; @@ -76,10 +76,9 @@ public: typedef std::list::const_iterator const_iterator; public: - /*ctor*/ NodeHeap () : std::list(), _size(0) {} - /*dtor*/ ~NodeHeap () {} + NodeHeap() : _size(0) {} - inline unsigned int size () const { return _size; } + inline unsigned size() const { return _size; } const SchedGraphNode* getNode (const_iterator i) const { return (*i)->node; } cycles_t getDelay(const_iterator i) const { return (*i)->delay;}