summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocPBQP.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-08-10 21:49:45 +0000
committerOwen Anderson <resistor@mac.com>2009-08-10 21:49:45 +0000
commiteddff647ac1724f57b08a648decd16e86edb2200 (patch)
treee7e09a99fd1a78b475e8199ce8c9e3f89b036b14 /llvm/lib/CodeGen/RegAllocPBQP.cpp
parent458c91732c8ef428a778dd4498b7f2449d7c6acd (diff)
downloadbcm5719-llvm-eddff647ac1724f57b08a648decd16e86edb2200.tar.gz
bcm5719-llvm-eddff647ac1724f57b08a648decd16e86edb2200.zip
Remove a bunch of debugging code that was slowing PBQP down by 25% or so.
llvm-svn: 78601
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocPBQP.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocPBQP.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/llvm/lib/CodeGen/RegAllocPBQP.cpp b/llvm/lib/CodeGen/RegAllocPBQP.cpp
index e0aea9847c0..154148bcfe1 100644
--- a/llvm/lib/CodeGen/RegAllocPBQP.cpp
+++ b/llvm/lib/CodeGen/RegAllocPBQP.cpp
@@ -690,51 +690,6 @@ bool PBQPRegAlloc::mapPBQPToRegAlloc(const PBQP::Solution &solution) {
// Clear the existing allocation.
vrm->clearAllVirt();
- CoalesceMap coalesces;//(findCoalesces());
-
- for (unsigned i = 0; i < node2LI.size(); ++i) {
- if (solution.getSelection(i) == 0) {
- continue;
- }
-
- unsigned iSel = solution.getSelection(i);
- unsigned iAlloc = allowedSets[i][iSel - 1];
-
- for (unsigned j = i + 1; j < node2LI.size(); ++j) {
-
- if (solution.getSelection(j) == 0) {
- continue;
- }
-
- unsigned jSel = solution.getSelection(j);
- unsigned jAlloc = allowedSets[j][jSel - 1];
-
- if ((iAlloc != jAlloc) && !tri->areAliases(iAlloc, jAlloc)) {
- continue;
- }
-
- if (node2LI[i]->overlaps(*node2LI[j])) {
- if (coalesces.find(RegPair(node2LI[i]->reg, node2LI[j]->reg)) == coalesces.end()) {
- DEBUG(errs() << "In round " << ++round << ":\n"
- << "Bogusness in " << mf->getFunction()->getName() << "!\n"
- << "Live interval " << i << " (reg" << node2LI[i]->reg << ") and\n"
- << "Live interval " << j << " (reg" << node2LI[j]->reg << ")\n"
- << " were allocated registers " << iAlloc << " (index " << iSel << ") and "
- << jAlloc << "(index " << jSel
- << ") respectively in a graph of " << solution.numNodes() << " nodes.\n"
- << "li[i]->empty() = " << node2LI[i]->empty() << "\n"
- << "li[j]->empty() = " << node2LI[j]->empty() << "\n"
- << "li[i]->overlaps(li[j]) = " << node2LI[i]->overlaps(*node2LI[j]) << "\n"
- << "coalesce = " << (coalesces.find(RegPair(node2LI[i]->reg, node2LI[j]->reg)) != coalesces.end()) << "\n");
-
- DEBUG(errs() << "solution.getCost() = " << solution.getCost() << "\n");
- exit(1);
- }
- }
- }
- }
-
-
// Iterate over the nodes mapping the PBQP solution to a register assignment.
for (unsigned node = 0; node < node2LI.size(); ++node) {
unsigned virtReg = node2LI[node]->reg,
OpenPOWER on IntegriCloud