mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix an overly strict assertion. Source register of a copy may not be killed, it may be killed by an implicit super-register use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c2feb5c262
commit
90960280ee
@ -1730,7 +1730,8 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM) {
|
||||
SmallVector<unsigned, 2> KillRegs;
|
||||
InvalidateKills(MI, RegKills, KillOps, &KillRegs);
|
||||
if (MO.isDead() && !KillRegs.empty()) {
|
||||
assert(KillRegs[0] == Dst);
|
||||
// Source register or an implicit super-register use is killed.
|
||||
assert(KillRegs[0] == Dst || TRI->isSubRegister(KillRegs[0], Dst));
|
||||
// Last def is now dead.
|
||||
TransferDeadness(&MBB, Dist, Src, RegKills, KillOps);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user