Update hir_builder.cc
This commit is contained in:
parent
adc3405537
commit
4493d17acc
|
@ -1877,9 +1877,7 @@ Value* HIRBuilder::AndNot(Value* value1, Value* value2) {
|
||||||
return this->And(this->Not(value2), value1);
|
return this->And(this->Not(value2), value1);
|
||||||
} else if (value1 == value2) {
|
} else if (value1 == value2) {
|
||||||
return LoadZero(value1->type);
|
return LoadZero(value1->type);
|
||||||
} else if (value1->IsConstantZero()) {
|
} else if (value1->IsConstantZero() || value2->IsConstantZero()) {
|
||||||
return value1;
|
|
||||||
} else if (value2->IsConstantZero()) {
|
|
||||||
return value1;
|
return value1;
|
||||||
} else {
|
} else {
|
||||||
Instr* i = AppendInstr(OPCODE_AND_NOT_info, 0, AllocValue(value1->type));
|
Instr* i = AppendInstr(OPCODE_AND_NOT_info, 0, AllocValue(value1->type));
|
||||||
|
|
Loading…
Reference in New Issue