summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-22 20:07:18 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-22 20:07:18 +0000
commite1c24c06f901621e72166e5398b8fbfc973852f0 (patch)
tree8fd9aae5f0025f58d5ce7fa9a3a813517bf89a76 /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parent4716d76d22a25b944e5cb9c8202dc2b70eee6eec (diff)
downloadbcm5719-llvm-e1c24c06f901621e72166e5398b8fbfc973852f0.tar.gz
bcm5719-llvm-e1c24c06f901621e72166e5398b8fbfc973852f0.zip
Remove unneeded check. An interval in active, by definition overlaps
with the current one. llvm-svn: 10959
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index 23c50cae8be..5f1290d233c 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
@@ -522,12 +522,9 @@ void RA::assignStackSlotAtInterval(IntervalPtrs::value_type cur)
for (unsigned i = 0; i < MRegisterInfo::FirstVirtualRegister; ++i)
regWeight[i] = 0.0F;
- // for each interval in active that overlaps
+ // for each interval in active
for (IntervalPtrs::const_iterator i = active_.begin(), e = active_.end();
i != e; ++i) {
- if (!cur->overlaps(**i))
- continue;
-
unsigned reg = (*i)->reg;
if (reg >= MRegisterInfo::FirstVirtualRegister) {
reg = v2pMap_[reg];
OpenPOWER on IntegriCloud