mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
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
This commit is contained in:
parent
5a5aeaf596
commit
1a746d3b8e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user