Use a continue to simplify loop and reduce indentation. No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chad Rosier
2013-02-01 17:49:07 +00:00
parent 03b3771c6c
commit 5fb7947ed1

View File

@@ -752,7 +752,9 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) {
MachineInstr *MI = I; MachineInstr *MI = I;
bool DoIncr = true; bool DoIncr = true;
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
if (MI->getOperand(i).isFI()) { if (!MI->getOperand(i).isFI())
continue;
// Some instructions (e.g. inline asm instructions) can have // Some instructions (e.g. inline asm instructions) can have
// multiple frame indices and/or cause eliminateFrameIndex // multiple frame indices and/or cause eliminateFrameIndex
// to insert more than one instruction. We need the register // to insert more than one instruction. We need the register
@@ -778,7 +780,6 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) {
MI = 0; MI = 0;
break; break;
} }
}
if (DoIncr && I != BB->end()) ++I; if (DoIncr && I != BB->end()) ++I;