mirror of
https://github.com/corda/corda.git
synced 2025-01-09 14:33:30 +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
|
registerPenalty = (c->floatRegisterCount > registerReserveCount
|
||||||
? 0 : Target::LowRegisterPenalty);
|
? 0 : Target::LowRegisterPenalty);
|
||||||
} else {
|
} else {
|
||||||
registerPenalty = (c->availableRegisterCount > registerReserveCount
|
abort(c);
|
||||||
? 0 : Target::LowRegisterPenalty);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
registerPenalty = (c->availableRegisterCount > registerReserveCount
|
registerPenalty = (c->generalRegisterCount > registerReserveCount || c->floatRegisterCount > registerReserveCount
|
||||||
? 0 : Target::LowRegisterPenalty);
|
? 0 : Target::LowRegisterPenalty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user