aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commit58a3685916e2badd7fdec557641b056c1540c0c3 (patch)
tree4193df67ac79f0429a35b4187096786bcb50b4de /lib/CodeGen
parentc48d4dc8a9371690f73d2d05d2297f1e1a19c952 (diff)
downloadexternal_llvm-58a3685916e2badd7fdec557641b056c1540c0c3.zip
external_llvm-58a3685916e2badd7fdec557641b056c1540c0c3.tar.gz
external_llvm-58a3685916e2badd7fdec557641b056c1540c0c3.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 0e621eb..b8e60bd 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/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.