mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
Don't recompute getNumOperands for each iteration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31783 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -277,7 +277,7 @@ LiveIntervals::CreateNewLiveInterval(const LiveInterval *LI,
|
|||||||
|
|
||||||
MachineInstr *MI = getInstructionFromIndex(Index);
|
MachineInstr *MI = getInstructionFromIndex(Index);
|
||||||
|
|
||||||
for (unsigned J = 0; J != MI->getNumOperands(); ++J) {
|
for (unsigned J = 0, e = MI->getNumOperands(); J != e; ++J) {
|
||||||
MachineOperand &MOp = MI->getOperand(J);
|
MachineOperand &MOp = MI->getOperand(J);
|
||||||
if (MOp.isRegister() && rep(MOp.getReg()) == LI->reg)
|
if (MOp.isRegister() && rep(MOp.getReg()) == LI->reg)
|
||||||
MOp.setReg(NewVReg);
|
MOp.setReg(NewVReg);
|
||||||
|
Reference in New Issue
Block a user