mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-18 14:31:27 +00:00
Don't emit live ranges for physregs live-ins that are dead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da7984fbba
commit
f58e37f957
@ -529,9 +529,10 @@ void LiveIntervals::handleLiveInRegister(MachineBasicBlock *MBB,
|
||||
if (!SeenDefUse) {
|
||||
if (isAllocatable(interval.reg) || isReserved(interval.reg)) {
|
||||
// This must be an entry block or landing pad - we asserted so on entry
|
||||
// to the function. For these blocks the interval is dead on entry.
|
||||
// to the function. For these blocks the interval is dead on entry, so
|
||||
// we won't emit a live-range for it.
|
||||
DEBUG(dbgs() << " dead");
|
||||
end = start.getDeadSlot();
|
||||
return;
|
||||
} else {
|
||||
assert(isRegLiveOutOf(MBB, interval.reg) &&
|
||||
"Live in reg untouched in block should be be live through.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user