We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2da65d commit 9cb48c8Copy full SHA for 9cb48c8
ext/opcache/jit/ir/ir_cfg.c
@@ -1033,6 +1033,20 @@ int ir_find_loops(ir_ctx *ctx)
1033
bb->loop_depth = loop_depth;
1034
if (bb->flags & (IR_BB_ENTRY|IR_BB_LOOP_WITH_ENTRY)) {
1035
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
1046
1047
1048
1049
1050
}
1051
1052
0 commit comments