Skip to content

Commit 37ec4e0

Browse files
committed
Disable constant propagation for variables that can be modified indirectly
1 parent 4bb9b65 commit 37ec4e0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/opcache/Optimizer/sccp.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,11 @@ static void sccp_context_init(sccp_ctx *ctx,
13291329
MAKE_BOT(&ctx->values[i]);
13301330
}
13311331
for (; i < ssa->vars_count; ++i) {
1332-
MAKE_TOP(&ctx->values[i]);
1332+
if (ssa->vars[i].alias) {
1333+
MAKE_BOT(&ctx->values[i]);
1334+
} else {
1335+
MAKE_TOP(&ctx->values[i]);
1336+
}
13331337
}
13341338
}
13351339

0 commit comments

Comments
 (0)