Skip to content

Commit f5efaa3

Browse files
committed
Update IR
IR commit: 873f13dd933acc38ba4cfe2a4aa8558867992a7e
1 parent 23aac16 commit f5efaa3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/opcache/jit/ir/ir_cfg.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ static ir_ref ir_optimize_phi(ir_ctx *ctx, ir_ref merge_ref, ir_insn *merge, ir_
239239
cond->op == IR_ULT || cond->op == IR_ULE || cond->op == IR_UGT || cond->op == IR_UGE);
240240
} else if (IR_IS_TYPE_SIGNED(type)) {
241241
is_cmp = (cond->op == IR_LT || cond->op == IR_LE || cond->op == IR_GT || cond->op == IR_GE);
242-
} else if (IR_IS_TYPE_UNSIGNED(type)) {
242+
} else {
243+
IR_ASSERT(IR_IS_TYPE_UNSIGNED(type));
243244
is_cmp = (cond->op == IR_ULT || cond->op == IR_ULE || cond->op == IR_UGT || cond->op == IR_UGE);
244245
}
245246

@@ -281,7 +282,8 @@ static ir_ref ir_optimize_phi(ir_ctx *ctx, ir_ref merge_ref, ir_insn *merge, ir_
281282
cond->op == IR_ULT || cond->op == IR_ULE);
282283
} else if (IR_IS_TYPE_SIGNED(type)) {
283284
is_less = (cond->op == IR_LT || cond->op == IR_LE);
284-
} else if (IR_IS_TYPE_UNSIGNED(type)) {
285+
} else {
286+
IR_ASSERT(IR_IS_TYPE_UNSIGNED(type));
285287
is_less = (cond->op == IR_ULT || cond->op == IR_ULE);
286288
}
287289
insn->op = (

0 commit comments

Comments
 (0)