summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocBasic.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-11 21:00:42 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-11 21:00:42 +0000
commit751933675263382de42f7be95c1058589f0ea41e (patch)
tree9e36ee0dd6d034e2c5ec8b4c6a23b3f7821df45d /llvm/lib/CodeGen/RegAllocBasic.cpp
parent9767347b11bfeac631f477d3965f5f1f3ef4ee72 (diff)
downloadbcm5719-llvm-751933675263382de42f7be95c1058589f0ea41e.tar.gz
bcm5719-llvm-751933675263382de42f7be95c1058589f0ea41e.zip
Privatize an unused part of the LiveIntervalUnion::Query interface.
No clients are iterating over interference overlaps. llvm-svn: 137350
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBasic.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocBasic.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBasic.cpp b/llvm/lib/CodeGen/RegAllocBasic.cpp
index a97b9b6b40c..5496d69fd3d 100644
--- a/llvm/lib/CodeGen/RegAllocBasic.cpp
+++ b/llvm/lib/CodeGen/RegAllocBasic.cpp
@@ -498,8 +498,9 @@ unsigned RABasic::selectOrSplit(LiveInterval &VirtReg,
// Found an available register.
return PhysReg;
}
+ Queries[interfReg].collectInterferingVRegs(1);
LiveInterval *interferingVirtReg =
- Queries[interfReg].firstInterference().liveUnionPos().value();
+ Queries[interfReg].interferingVRegs().front();
// The current VirtReg must either be spillable, or one of its interferences
// must have less spill weight.
OpenPOWER on IntegriCloud