From 296b7730e355a657df9fc5355c2cbe4985219903 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 5 Feb 2002 02:52:05 +0000 Subject: * 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1712 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegAlloc/InterferenceGraph.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/CodeGen/RegAlloc/InterferenceGraph.cpp') diff --git a/lib/CodeGen/RegAlloc/InterferenceGraph.cpp b/lib/CodeGen/RegAlloc/InterferenceGraph.cpp index a366c11710..c90ae4ae24 100644 --- a/lib/CodeGen/RegAlloc/InterferenceGraph.cpp +++ b/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"; } -- cgit v1.2.3-18-g5258