forked from OSchip/llvm-project
[RDF] Add registers to live set even if they are live already
When calculating kills, a register may be considered live because a part of it is live, but if there is a use of that (whole) register, the whole register (and its subregisters) need to be added to the live set. llvm-svn: 292845
This commit is contained in:
parent
0f550c8176
commit
09a8638724
|
@ -803,8 +803,7 @@ void Liveness::resetKills(MachineBasicBlock *B) {
|
||||||
IsLive = true;
|
IsLive = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (IsLive)
|
if (!IsLive)
|
||||||
continue;
|
|
||||||
Op.setIsKill(true);
|
Op.setIsKill(true);
|
||||||
for (MCSubRegIterator SR(R, &TRI, true); SR.isValid(); ++SR)
|
for (MCSubRegIterator SR(R, &TRI, true); SR.isValid(); ++SR)
|
||||||
Live.set(*SR);
|
Live.set(*SR);
|
||||||
|
|
Loading…
Reference in New Issue