mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Only worry about intervening kill if there are more than one live ranges in the interval.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37052 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0dbea33fff
commit
8dfffd5a07
@ -1073,9 +1073,11 @@ bool LiveIntervals::JoinCopy(MachineInstr *CopyMI,
|
||||
// have clobbered values for this range.
|
||||
if (MRegisterInfo::isPhysicalRegister(repDstReg)) {
|
||||
// Unset unnecessary kills.
|
||||
if (!DstInt.containsOneValue()) {
|
||||
for (LiveInterval::Ranges::const_iterator I = SrcInt.begin(),
|
||||
E = SrcInt.end(); I != E; ++I)
|
||||
unsetRegisterKills(I->start, I->end, repDstReg);
|
||||
}
|
||||
|
||||
// Update the liveintervals of sub-registers.
|
||||
for (const unsigned *AS = mri_->getSubRegisters(repDstReg); *AS; ++AS)
|
||||
|
Loading…
Reference in New Issue
Block a user