Update IR

IR commit: 4f02f1bdc5b4312b862e5e399fe9fb1cfe149d0f
This commit is contained in:
Dmitry Stogov 2024-09-17 21:24:01 +03:00
parent c9a4abadcc
commit 718cff9bbb
No known key found for this signature in database

View File

@ -662,7 +662,7 @@ int ir_build_dominators_tree(ir_ctx *ctx)
uint32_t idom = *p; uint32_t idom = *p;
ir_block *idom_bb; ir_block *idom_bb;
if (UNEXPECTED(idom > b)) { if (UNEXPECTED(idom >= b)) {
/* In rare cases, LOOP_BEGIN.op1 may be a back-edge. Skip back-edges. */ /* In rare cases, LOOP_BEGIN.op1 may be a back-edge. Skip back-edges. */
ctx->flags2 &= ~IR_NO_LOOPS; ctx->flags2 &= ~IR_NO_LOOPS;
IR_ASSERT(k > 1 && "Wrong blocks order: BB is before its single predecessor"); IR_ASSERT(k > 1 && "Wrong blocks order: BB is before its single predecessor");