aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAlloc/LiveRange.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-04 05:52:08 +0000
committerChris Lattner <sabre@nondot.org>2002-02-04 05:52:08 +0000
commit2182c785c22a3e805d7d38708e75e5d30c547fdf (patch)
treefef38257c2cfce3e1726147e914cabf0a81e9cd8 /lib/CodeGen/RegAlloc/LiveRange.h
parent9e881eb60d8dad093e8ce03f45860df8ac43837c (diff)
* Minor cleanups
* Reduce number of #includes, sometimes drastically (LiveRangeInfo.h lost _7_) * Move instrIsFeasible() from InstrScheduling.h to SchedPriorities.h * Delete blank lines at end of files git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAlloc/LiveRange.h')
-rw-r--r--lib/CodeGen/RegAlloc/LiveRange.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/CodeGen/RegAlloc/LiveRange.h b/lib/CodeGen/RegAlloc/LiveRange.h
index 8034751da9..e1e2992a69 100644
--- a/lib/CodeGen/RegAlloc/LiveRange.h
+++ b/lib/CodeGen/RegAlloc/LiveRange.h
@@ -26,13 +26,9 @@ class IGNode;
// of Values.
//----------------------------------------------------------------------------
-class LiveRange : public ValueSet
-{
- private:
-
+class LiveRange : public ValueSet {
RegClass *MyRegClass; // register classs (e.g., int, FP) for this LR
-
bool doesSpanAcrossCalls;
//
// Does this live range span across calls?
@@ -168,7 +164,7 @@ class LiveRange : public ValueSet
}
inline Type::PrimitiveID getTypeID() const {
- return this->getType()->getPrimitiveID();
+ return getType()->getPrimitiveID();
}
inline void setSuggestedColor(int Col) {
@@ -176,8 +172,10 @@ class LiveRange : public ValueSet
if(SuggestedColor == -1 )
SuggestedColor = Col;
+#if 0
else if (DEBUG_RA)
std::cerr << "Already has a suggested color " << Col << "\n";
+#endif
}
inline unsigned getSuggestedColor() const {
@@ -206,12 +204,6 @@ class LiveRange : public ValueSet
inline unsigned getSpillCost() const {
return SpillCost;
}
-
};
-
-
-
-
#endif
-