mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
The copy instruction being coalesced will be removed, it is not a kill.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3e09574ae
commit
bd3e5aac74
@ -300,10 +300,10 @@ bool SimpleRegisterCoalescing::RemoveCopyByCommutingDef(LiveInterval &IntA,
|
||||
if (ULR->valno != AValNo)
|
||||
continue;
|
||||
UseMO.setReg(NewReg);
|
||||
if (UseMO.isKill())
|
||||
BKills.push_back(li_->getUseIndex(UseIdx)+1);
|
||||
if (UseMI == CopyMI)
|
||||
continue;
|
||||
if (UseMO.isKill())
|
||||
BKills.push_back(li_->getUseIndex(UseIdx)+1);
|
||||
unsigned SrcReg, DstReg;
|
||||
if (!tii_->isMoveInstr(*UseMI, SrcReg, DstReg))
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user