Update IR

IR commit: 84a4b4259a0ea246f82e0d8a3d79032af75b5267

This fixes GH-15903: Core dumped in ext/opcache/jit/ir/ir_ra.c
This commit is contained in:
Dmitry Stogov 2024-09-18 09:33:54 +03:00
parent e2da65de2a
commit 9cb48c8fa1
No known key found for this signature in database

View file

@ -1033,6 +1033,20 @@ next:
bb->loop_depth = loop_depth; bb->loop_depth = loop_depth;
if (bb->flags & (IR_BB_ENTRY|IR_BB_LOOP_WITH_ENTRY)) { if (bb->flags & (IR_BB_ENTRY|IR_BB_LOOP_WITH_ENTRY)) {
loop->flags |= IR_BB_LOOP_WITH_ENTRY; loop->flags |= IR_BB_LOOP_WITH_ENTRY;
if (loop_depth > 1) {
/* Set IR_BB_LOOP_WITH_ENTRY flag for all the enclosing loops */
bb = &blocks[loop->loop_header];
while (1) {
if (bb->flags & IR_BB_LOOP_WITH_ENTRY) {
break;
}
bb->flags |= IR_BB_LOOP_WITH_ENTRY;
if (bb->loop_depth == 1) {
break;
}
bb = &blocks[loop->loop_header];
}
}
} }
} }
} }