From 2066bf1e1891626756b9e6993540da197e9f17e4 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 5 Mar 2024 11:33:02 +0300 Subject: [PATCH] Update IR IR commit: 2bc594304cb40ebc3930c529a6ade7d121d5e00b --- ext/opcache/jit/ir/ir_cfg.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ext/opcache/jit/ir/ir_cfg.c b/ext/opcache/jit/ir/ir_cfg.c index aa28d0b3ae6..921d7285c0b 100644 --- a/ext/opcache/jit/ir/ir_cfg.c +++ b/ext/opcache/jit/ir/ir_cfg.c @@ -1826,7 +1826,10 @@ int ir_schedule_blocks(ir_ctx *ctx) ir_block *bb, *best_successor_bb; ir_insn *insn; uint32_t *list, *empty; - uint32_t count = 0, empty_count = 0; + uint32_t count = 0; +#ifdef IR_DEBUG + uint32_t empty_count = 0; +#endif ir_bitqueue_init(&blocks, ctx->cfg_blocks_count + 1); blocks.pos = 0; @@ -1852,7 +1855,9 @@ int ir_schedule_blocks(ir_ctx *ctx) } if ((bb->flags & (IR_BB_START|IR_BB_ENTRY|IR_BB_EMPTY)) == IR_BB_EMPTY) { /* move empty blocks to the end */ +#ifdef IR_DEBUG empty_count++; +#endif *empty = b; empty--; } else {