Skip to content

Commit 7faa3de

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: Update IR
2 parents ccb6d78 + ae67eb0 commit 7faa3de

File tree

2 files changed

+539
-204
lines changed

2 files changed

+539
-204
lines changed

ext/opcache/jit/ir/ir_gcm.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,11 @@ static bool ir_split_partially_dead_node(ir_ctx *ctx, ir_ref ref, uint32_t b)
413413
n = ctx->use_lists[ref].refs;
414414
for (i = 0; i < clones_count; i++) {
415415
clone = clones[i].ref;
416-
if (clones[i].use_count == 1) {
416+
if (clones[i].use_count == 1
417+
&& ctx->cfg_blocks[clones[i].block].loop_depth >= ctx->cfg_blocks[uses[clones[i].use].block].loop_depth) {
417418
/* TOTALLY_USEFUL block may be a head of a diamond above the real usage.
418419
* Sink it down to the real usage block.
419-
* Clones with few uses we be sunk into the LCA block.
420+
* Clones with few uses will be sunk into the LCA block.
420421
*/
421422
clones[i].block = uses[clones[i].use].block;
422423
}

0 commit comments

Comments
 (0)