From 26c4a7ca335ce75e78fa5f52d8a7eb28372f9a27 Mon Sep 17 00:00:00 2001 From: "liang.he" Date: Tue, 26 Apr 2022 15:59:15 +0800 Subject: [PATCH] Only handle one const case in `DEF_UNI_INT_CONST_OPS` (#1122) `DEF_UNI_INT_CONST_OPS` handle the case of both consts --- core/iwasm/fast-jit/fe/jit_emit_numberic.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/core/iwasm/fast-jit/fe/jit_emit_numberic.c b/core/iwasm/fast-jit/fe/jit_emit_numberic.c index fd0a1e6e8..768964dee 100644 --- a/core/iwasm/fast-jit/fe/jit_emit_numberic.c +++ b/core/iwasm/fast-jit/fe/jit_emit_numberic.c @@ -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; }