Skip to content
Snippets Groups Projects
Commit 0df53574 authored by Chris Lattner's avatar Chris Lattner
Browse files

Fix CodeGen/Generic/2007-04-08-MultipleFrameIndices.ll and PR1308:

some instructions can have multiple frame indices in them.  If this happens,
rewrite all of them.

llvm-svn: 35785
parent e5056155
No related branches found
No related tags found
No related merge requests found
......@@ -504,7 +504,11 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) {
// If this instruction has a FrameIndex operand, we need to use that
// target machine register info object to eliminate it.
MRI.eliminateFrameIndex(I, RS);
break;
// Revisit the instruction in full. Some instructions (e.g. inline
// asm instructions) can have multiple frame indices.
e = I->getNumOperands();
i = -1U;
}
// Update register states.
if (RS) RS->forward(I);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment