diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-01-22 20:07:18 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-01-22 20:07:18 +0000 |
commit | 84dc5fb6ba3c131ed707b03fcd1603c1efca2802 (patch) | |
tree | 702e1f97c7404ee86e3c84a62e8ac446e257b9e1 /lib/CodeGen/RegAllocLinearScan.cpp | |
parent | ce501150061cc011d955368513b6b0604a1026c5 (diff) |
Remove unneeded check. An interval in active, by definition overlaps
with the current one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLinearScan.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index 23c50cae8b..5f1290d233 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/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]; |