Skip to content

Commit d4f15b9

Browse files
committed
Don't visit the same Phi twice
1 parent 2558311 commit d4f15b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/Optimizer/scdf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ static void mark_edge_feasible(scdf_ctx *ctx, int from, const int *to_ptr, int s
8787
zend_ssa_block *ssa_block = &ctx->ssa->blocks[to];
8888
zend_ssa_phi *phi;
8989
for (phi = ssa_block->phis; phi; phi = phi->next) {
90+
zend_bitset_excl(ctx->phi_var_worklist, phi->ssa_var);
9091
ctx->handlers.visit_phi(ctx, ctx->ctx, phi);
9192
}
9293
}

0 commit comments

Comments
 (0)