Only handle one const case in DEF_UNI_INT_CONST_OPS (#1122)

`DEF_UNI_INT_CONST_OPS` handle the case of both consts
This commit is contained in:
liang.he 2022-04-26 15:59:15 +08:00 committed by GitHub
parent 0377aec027
commit 26c4a7ca33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -713,15 +713,6 @@ DEF_UNI_INT_CONST_OPS(xor)
if (IS_CONST_ZERO(right))
return left;
if (is_i32) {
if (jit_cc_get_const_I32(cc, left) == jit_cc_get_const_I32(cc, right))
return NEW_CONST(I32, 0);
}
else {
if (jit_cc_get_const_I64(cc, left) == jit_cc_get_const_I64(cc, right))
return NEW_CONST(I64, 0);
}
return 0;
}