summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-05 02:52:05 +0000
committerChris Lattner <sabre@nondot.org>2002-02-05 02:52:05 +0000
commitb0af9cdbda0dd2ee243d5185259f59537211579d (patch)
tree77b9723f5b42691b5f3f4960871758b6902cd144 /llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp
parentb1def732afe963862ea0df03ac10274ccb1d3b3f (diff)
downloadbcm5719-llvm-b0af9cdbda0dd2ee243d5185259f59537211579d.tar.gz
bcm5719-llvm-b0af9cdbda0dd2ee243d5185259f59537211579d.zip
* Eliminate the LiveVarSet class, making applyTranferFuncForMInst a static
function in the one .cpp file that uses it. Use ValueSet's instead. * Prepare to delete LiveVarSet.h & LiveVarSet.cpp * Eliminate the ValueSet class, making all old member functions into global templates that will eventually be moved to Support. * Eliminate some irrelevant const's llvm-svn: 1712
Diffstat (limited to 'llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp b/llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp
index a366c117109..c90ae4ae241 100644
--- a/llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp
+++ b/llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp
@@ -133,8 +133,8 @@ unsigned InterferenceGraph::getInterference(const LiveRange *const LR1,
// LiveRangeInfo::unionAndUpdateLRs for that purpose.
//----------------------------------------------------------------------------
-void InterferenceGraph::mergeIGNodesOfLRs(const LiveRange *const LR1,
- LiveRange *const LR2 ) {
+void InterferenceGraph::mergeIGNodesOfLRs(const LiveRange *LR1,
+ LiveRange *LR2) {
assert( LR1 != LR2); // cannot merge the same live range
@@ -145,8 +145,8 @@ void InterferenceGraph::mergeIGNodesOfLRs(const LiveRange *const LR1,
assertIGNode( SrcNode );
if( DEBUG_RA > 1) {
- cerr << "Merging LRs: \""; LR1->printSet();
- cerr << "\" and \""; LR2->printSet();
+ cerr << "Merging LRs: \""; printSet(*LR1);
+ cerr << "\" and \""; printSet(*LR2);
cerr << "\"\n";
}
@@ -236,7 +236,7 @@ void InterferenceGraph::printIGNodeList() const
if (Node) {
cerr << " [" << Node->getIndex() << "] ";
- Node->getParentLR()->printSet();
+ printSet(*Node->getParentLR());
//int Deg = Node->getCurDegree();
cerr << "\t <# of Neighs: " << Node->getNumOfNeighbors() << ">\n";
}
OpenPOWER on IntegriCloud