forked from OSchip/llvm-project
Fix an obvious bug. Old code only worked for the entry block.
llvm-svn: 37743
This commit is contained in:
parent
5477c54aa0
commit
6cf1371456
|
@ -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…
Reference in New Issue