Skip to content

Commit 9cb48c8

Browse files
committed
Update IR
IR commit: 84a4b4259a0ea246f82e0d8a3d79032af75b5267 This fixes GH-15903: Core dumped in ext/opcache/jit/ir/ir_ra.c
1 parent e2da65d commit 9cb48c8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ext/opcache/jit/ir/ir_cfg.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,20 @@ int ir_find_loops(ir_ctx *ctx)
10331033
bb->loop_depth = loop_depth;
10341034
if (bb->flags & (IR_BB_ENTRY|IR_BB_LOOP_WITH_ENTRY)) {
10351035
loop->flags |= IR_BB_LOOP_WITH_ENTRY;
1036+
if (loop_depth > 1) {
1037+
/* Set IR_BB_LOOP_WITH_ENTRY flag for all the enclosing loops */
1038+
bb = &blocks[loop->loop_header];
1039+
while (1) {
1040+
if (bb->flags & IR_BB_LOOP_WITH_ENTRY) {
1041+
break;
1042+
}
1043+
bb->flags |= IR_BB_LOOP_WITH_ENTRY;
1044+
if (bb->loop_depth == 1) {
1045+
break;
1046+
}
1047+
bb = &blocks[loop->loop_header];
1048+
}
1049+
}
10361050
}
10371051
}
10381052
}

0 commit comments

Comments
 (0)