mirror of
https://github.com/corda/corda.git
synced 2025-01-23 21:08:48 +00:00
only elide constant multiply if constant is one, not zero (duh)
This commit is contained in:
parent
fc8c5a2ea9
commit
5b2065e76c
@ -1144,7 +1144,7 @@ multiplyCR(Context* c, unsigned size, Assembler::Constant* a,
|
|||||||
c->client->releaseTemporary(tmp.high);
|
c->client->releaseTemporary(tmp.high);
|
||||||
} else {
|
} else {
|
||||||
int64_t v = a->value->value();
|
int64_t v = a->value->value();
|
||||||
if (v) {
|
if (v != 1) {
|
||||||
if (isInt32(v)) {
|
if (isInt32(v)) {
|
||||||
if (size == 8) rex(c);
|
if (size == 8) rex(c);
|
||||||
if (isInt8(v)) {
|
if (isInt8(v)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user