fixed register reserve logic in pickTarget

This commit is contained in:
Josh warner 2009-08-10 13:42:37 -06:00
parent 1d3ef1fc43
commit 9910e310cb

View File

@ -1317,11 +1317,10 @@ pickTarget(Context* c, Read* read, bool intersectRead,
registerPenalty = (c->floatRegisterCount > registerReserveCount
? 0 : Target::LowRegisterPenalty);
} else {
registerPenalty = (c->availableRegisterCount > registerReserveCount
? 0 : Target::LowRegisterPenalty);
abort(c);
}
} else {
registerPenalty = (c->availableRegisterCount > registerReserveCount
registerPenalty = (c->generalRegisterCount > registerReserveCount || c->floatRegisterCount > registerReserveCount
? 0 : Target::LowRegisterPenalty);
}