diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-06 19:14:00 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-06 19:14:00 +0000 |
commit | 70d4370b47cdd375bbea98e50452789fe4f1af04 (patch) | |
tree | add9c7e773a47c8ff88ca8840dd657c7614db4da /lib/CodeGen/RegAllocGreedy.cpp | |
parent | 9efa2a263ea470caacef1c85f6ca45e32bf516d3 (diff) |
Keep track of the number of positively biased nodes when adding constraints.
If there are no positive nodes, the algorithm can be aborted early.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocGreedy.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index 4e8891f66f..31729ec441 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -772,6 +772,7 @@ unsigned RAGreedy::tryRegionSplit(LiveInterval &VirtReg, AllocationOrder &Order, SpillPlacer->prepare(LiveBundles); SpillPlacer->addConstraints(SplitConstraints); + DEBUG(dbgs() << ", " << SpillPlacer->getPositiveNodes() << " biased nodes"); SpillPlacer->finish(); // No live bundles, defer to splitSingleBlocks(). |