mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use LiveRangeQuery instead of getLiveRangeContaining().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c313c6b9ff
commit
92a05fa450
@ -578,11 +578,11 @@ MachineInstr *InlineSpiller::traceSiblingValue(unsigned UseReg, VNInfo *UseVNI,
|
||||
if (unsigned SrcReg = isFullCopyOf(MI, Reg)) {
|
||||
if (isSibling(SrcReg)) {
|
||||
LiveInterval &SrcLI = LIS.getInterval(SrcReg);
|
||||
LiveRange *SrcLR = SrcLI.getLiveRangeContaining(VNI->def.getRegSlot(true));
|
||||
assert(SrcLR && "Copy from non-existing value");
|
||||
LiveRangeQuery SrcQ(SrcLI, VNI->def);
|
||||
assert(SrcQ.valueIn() && "Copy from non-existing value");
|
||||
// Check if this COPY kills its source.
|
||||
SVI->second.KillsSource = (SrcLR->end == VNI->def);
|
||||
VNInfo *SrcVNI = SrcLR->valno;
|
||||
SVI->second.KillsSource = SrcQ.isKill();
|
||||
VNInfo *SrcVNI = SrcQ.valueIn();
|
||||
DEBUG(dbgs() << "copy of " << PrintReg(SrcReg) << ':'
|
||||
<< SrcVNI->id << '@' << SrcVNI->def
|
||||
<< " kill=" << unsigned(SVI->second.KillsSource) << '\n');
|
||||
|
Loading…
Reference in New Issue
Block a user