Add hack to register checker for rbp

Rbp is allocated just as weirdly as rbx.  I was able to hit
this assert on a inlined function that didn't eliminate the ActRec
(there are ReDefSP's that consume rbp).
Esse commit está contido em:
Jordan DeLong
2013-05-13 07:19:15 -07:00
commit de Sara Golemon
commit df1308cb9d
+4 -2
Ver Arquivo
@@ -128,8 +128,10 @@ bool checkRegisters(Trace* trace, const IRFactory& factory,
for (IRInstruction& inst : *block) {
for (SSATmp* src : inst.getSrcs()) {
auto const &info = regs[src];
if (!info.spilled() && info.getReg(0) == Transl::rVmSp) {
// hack - ignore rbx
if (!info.spilled() &&
(info.getReg(0) == Transl::rVmSp ||
info.getReg(0) == Transl::rVmFp)) {
// hack - ignore rbx and rbp
continue;
}
for (unsigned i = 0, n = info.numAllocatedRegs(); i < n; ++i) {