diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-04 05:52:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-04 05:52:08 +0000 |
commit | b0da8b2de1eb319dba1dad6e89739a3224cf961e (patch) | |
tree | 2f101671598e0619684c4bc9c7d25f2f2fec55ca /llvm/lib/CodeGen/RegAlloc/LiveRange.h | |
parent | 73645f3b941a0d37225672420c1911f111f5dad0 (diff) | |
download | bcm5719-llvm-b0da8b2de1eb319dba1dad6e89739a3224cf961e.tar.gz bcm5719-llvm-b0da8b2de1eb319dba1dad6e89739a3224cf961e.zip |
* 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
llvm-svn: 1672
Diffstat (limited to 'llvm/lib/CodeGen/RegAlloc/LiveRange.h')
-rw-r--r-- | llvm/lib/CodeGen/RegAlloc/LiveRange.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/LiveRange.h b/llvm/lib/CodeGen/RegAlloc/LiveRange.h index 8034751da99..e1e2992a69d 100644 --- a/llvm/lib/CodeGen/RegAlloc/LiveRange.h +++ b/llvm/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 - |