[CPU] Added constant propagation pass for: OPCODE_AND_NOT
This commit is contained in:
@@ -750,6 +750,13 @@ void Value::Not() {
|
||||
}
|
||||
}
|
||||
|
||||
void Value::AndNot(Value* other) {
|
||||
assert_true(type == other->type);
|
||||
Value second = Value(*other);
|
||||
second.Not();
|
||||
And(&second);
|
||||
}
|
||||
|
||||
void Value::Shl(Value* other) {
|
||||
assert_true(other->type == INT8_TYPE);
|
||||
switch (type) {
|
||||
|
||||
@@ -516,6 +516,7 @@ class Value {
|
||||
void Or(Value* other);
|
||||
void Xor(Value* other);
|
||||
void Not();
|
||||
void AndNot(Value* other);
|
||||
void Shl(Value* other);
|
||||
void Shr(Value* other);
|
||||
void Sha(Value* other);
|
||||
|
||||
Reference in New Issue
Block a user