mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
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
This commit is contained in:
parent
84b2fe36c8
commit
ffd4eb644b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user