mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Fix an obvious bug. Old code only worked for the entry block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37743 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6032a5ba64
commit
75611fb4e6
@ -623,10 +623,11 @@ void LiveIntervals::handleLiveInRegister(MachineBasicBlock *MBB,
|
||||
}
|
||||
|
||||
exit:
|
||||
// Alias of a live-in register might not be used at all.
|
||||
if (isAlias && end == 0) {
|
||||
// Live-in register might not be used at all.
|
||||
if (end == MIIdx) {
|
||||
DOUT << " dead";
|
||||
end = getDefIndex(start) + 1;
|
||||
if (isAlias)
|
||||
end = getDefIndex(MIIdx) + 1;
|
||||
}
|
||||
|
||||
assert(start < end && "did not find end of interval?");
|
||||
|
Loading…
x
Reference in New Issue
Block a user