This patch adds parameter "EliminateFI" to RegScavenger::scavengeRegister, which tells register scavenger not to eliminate frame index of the emergency spill slot if set to false.<br><br>I have pseudo load, store and copy instructions which are generated during register allocation and expanded post-RA but before the final stack size is known. I use register scavenger to search for a temporary integer GPR that is used during pseudo-expansion.<br>
<br>This is what happens during pseudo-expansion:<br><br>The following pseudo<br><br>LoadAC $acc, FI // Pseudo load instructions. Load from FI to accumulator $acc.<br><br><br>is expanded into this sequence:<br><br>LW $reg, FI // load from FI to temporary GPR $reg<br>
MTLO $reg // copy $reg to register LO<br>LW $reg, FI + 4 // load from FI+4 to GPR $reg<br>
MTHI $reg // copy $reg to register HI<br>
<br><br>