mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
fixed register reserve logic in pickTarget
This commit is contained in:
parent
1d3ef1fc43
commit
9910e310cb
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user