mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45830 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba7e756c22
commit
a07cec9e24
@ -309,14 +309,8 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb,
|
||||
// are actually two values in the live interval. Because of this we
|
||||
// need to take the LiveRegion that defines this register and split it
|
||||
// into two values.
|
||||
MachineRegisterInfo& MRI = mbb->getParent()->getRegInfo();
|
||||
unsigned lowIndex = ~0U;
|
||||
for (MachineRegisterInfo::def_iterator DI = MRI.def_begin(interval.reg),
|
||||
DE = MRI.def_end(); DI != DE; ++DI)
|
||||
if (getInstructionIndex(&*DI) < lowIndex)
|
||||
lowIndex = getInstructionIndex(&*DI);
|
||||
|
||||
unsigned DefIndex = getDefIndex(lowIndex);
|
||||
assert(interval.containsOneValue());
|
||||
unsigned DefIndex = getDefIndex(interval.getValNumInfo(0)->def);
|
||||
unsigned RedefIndex = getDefIndex(MIIdx);
|
||||
|
||||
const LiveRange *OldLR = interval.getLiveRangeContaining(RedefIndex-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user