[llvm-commits] CVS: llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Jul 28 23:43:18 PDT 2004
Changes in directory llvm/lib/Target/SparcV9/RegAlloc:
LiveRangeInfo.cpp updated: 1.54 -> 1.55
---
Log message:
Get rid of calls to void llvm::printSet(const ValueSet &).
Use LiveRange's iterator types and operations instead of ValueSet's.
---
Diffs of the changes: (+3 -5)
Index: llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp
diff -u llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp:1.54 llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp:1.55
--- llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp:1.54 Sun Jul 4 07:19:56 2004
+++ llvm/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp Thu Jul 29 01:43:08 2004
@@ -65,11 +65,9 @@
assert(! (L1->hasColor() && L2->hasColor()) ||
L1->getColor() == L2->getColor());
- set_union(*L1, *L2); // add elements of L2 to L1
-
- for(ValueSet::iterator L2It = L2->begin(); L2It != L2->end(); ++L2It) {
- //assert(( L1->getTypeID() == L2->getTypeID()) && "Merge:Different types");
+ L2->insert (L1->begin(), L1->end()); // add elements of L2 to L1
+ for(LiveRange::iterator L2It = L2->begin(); L2It != L2->end(); ++L2It) {
L1->insert(*L2It); // add the var in L2 to L1
LiveRangeMap[*L2It] = L1; // now the elements in L2 should map
//to L1
@@ -408,7 +406,7 @@
std::cerr << "LR# " << igNode->getIndex();
else
std::cerr << "LR# " << "<no-IGNode>";
- std::cerr << "\t:Values = "; printSet(*HMI->second); std::cerr << "\n";
+ std::cerr << "\t:Values = " << *HMI->second << "\n";
}
}
}
More information about the llvm-commits
mailing list