only elide constant multiply if constant is one, not zero (duh)

This commit is contained in:
Joel Dice 2008-06-10 18:14:15 -06:00
parent fc8c5a2ea9
commit 5b2065e76c

View File

@ -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)) {