mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +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);
|
||||
} else {
|
||||
int64_t v = a->value->value();
|
||||
if (v) {
|
||||
if (v != 1) {
|
||||
if (isInt32(v)) {
|
||||
if (size == 8) rex(c);
|
||||
if (isInt8(v)) {
|
||||
|
Loading…
Reference in New Issue
Block a user