mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 22:34:39 +00:00
Don't recompute getNumOperands for each iteration.
llvm-svn: 31783
This commit is contained in:
parent
9cea24d40e
commit
bcd11344e9
@ -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