mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
Don't depend on kill flags in removeCopyByCommutingDef().
Kill flags are removed more and more aggressively during the register allocation passes, it is better to get information from LiveIntervals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163972 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ae03fa69f
commit
ab9baf7ff4
@ -583,7 +583,7 @@ bool RegisterCoalescer::removeCopyByCommutingDef(const CoalescerPair &CP,
|
||||
|
||||
MachineOperand &NewDstMO = DefMI->getOperand(NewDstIdx);
|
||||
unsigned NewReg = NewDstMO.getReg();
|
||||
if (NewReg != IntB.reg || !NewDstMO.isKill())
|
||||
if (NewReg != IntB.reg || !LiveRangeQuery(IntB, AValNo->def).isKill())
|
||||
return false;
|
||||
|
||||
// Make sure there are no other definitions of IntB that would reach the
|
||||
|
Loading…
x
Reference in New Issue
Block a user