summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2012-01-25 22:11:06 +0000
committerLang Hames <lhames@gmail.com>2012-01-25 22:11:06 +0000
commitf1508b78f9c28f4b432bb852970f2fe1f91a2ae1 (patch)
treef5525152ae2587a931391d094ca095ac6d77f576 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent65e24655504dfbf10961ef9379d977e6afdbccaf (diff)
downloadbcm5719-llvm-f1508b78f9c28f4b432bb852970f2fe1f91a2ae1.tar.gz
bcm5719-llvm-f1508b78f9c28f4b432bb852970f2fe1f91a2ae1.zip
Don't add live ranges for aliases of physregs that are live in to the
function. They don't appear to be used, and are inconsistent with handling of other physreg intervals (i.e. intervals that are not live-in) where ranges are not inserted for aliases. llvm-svn: 148986
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 0e621ebc68c..b8e60bd1ec3 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -582,11 +582,6 @@ void LiveIntervals::computeIntervals() {
for (MachineBasicBlock::livein_iterator LI = MBB->livein_begin(),
LE = MBB->livein_end(); LI != LE; ++LI) {
handleLiveInRegister(MBB, MIIndex, getOrCreateInterval(*LI));
- // Multiple live-ins can alias the same register.
- for (const unsigned* AS = tri_->getSubRegisters(*LI); *AS; ++AS)
- if (!hasInterval(*AS))
- handleLiveInRegister(MBB, MIIndex, getOrCreateInterval(*AS),
- true);
}
// Skip over empty initial indices.
OpenPOWER on IntegriCloud