From f5efaa39fa8b0d44d1467929fcffc832d04669b5 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 21 Feb 2024 01:48:38 +0300 Subject: [PATCH] Update IR IR commit: 873f13dd933acc38ba4cfe2a4aa8558867992a7e --- ext/opcache/jit/ir/ir_cfg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/opcache/jit/ir/ir_cfg.c b/ext/opcache/jit/ir/ir_cfg.c index 0343c8932aa..3fa06b03e55 100644 --- a/ext/opcache/jit/ir/ir_cfg.c +++ b/ext/opcache/jit/ir/ir_cfg.c @@ -239,7 +239,8 @@ static ir_ref ir_optimize_phi(ir_ctx *ctx, ir_ref merge_ref, ir_insn *merge, ir_ cond->op == IR_ULT || cond->op == IR_ULE || cond->op == IR_UGT || cond->op == IR_UGE); } else if (IR_IS_TYPE_SIGNED(type)) { is_cmp = (cond->op == IR_LT || cond->op == IR_LE || cond->op == IR_GT || cond->op == IR_GE); - } else if (IR_IS_TYPE_UNSIGNED(type)) { + } else { + IR_ASSERT(IR_IS_TYPE_UNSIGNED(type)); is_cmp = (cond->op == IR_ULT || cond->op == IR_ULE || cond->op == IR_UGT || cond->op == IR_UGE); } @@ -281,7 +282,8 @@ static ir_ref ir_optimize_phi(ir_ctx *ctx, ir_ref merge_ref, ir_insn *merge, ir_ cond->op == IR_ULT || cond->op == IR_ULE); } else if (IR_IS_TYPE_SIGNED(type)) { is_less = (cond->op == IR_LT || cond->op == IR_LE); - } else if (IR_IS_TYPE_UNSIGNED(type)) { + } else { + IR_ASSERT(IR_IS_TYPE_UNSIGNED(type)); is_less = (cond->op == IR_ULT || cond->op == IR_ULE); } insn->op = (