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:
Bill Wendling 2006-11-16 07:35:18 +00:00
parent 1bcf7a309e
commit beeb77f3ae

View File

@ -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);