mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +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:
parent
1bcf7a309e
commit
beeb77f3ae
@ -277,7 +277,7 @@ LiveIntervals::CreateNewLiveInterval(const LiveInterval *LI,
|
||||
|
||||
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);
|
||||
if (MOp.isRegister() && rep(MOp.getReg()) == LI->reg)
|
||||
MOp.setReg(NewVReg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user