From d4f15b95061a8a2303d90e6e54effeb9733f90b7 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 5 Jul 2017 23:39:10 +0300 Subject: [PATCH] Don't visit the same Phi twice --- ext/opcache/Optimizer/scdf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/opcache/Optimizer/scdf.c b/ext/opcache/Optimizer/scdf.c index 1fb9d0a6730..5704a502ff5 100644 --- a/ext/opcache/Optimizer/scdf.c +++ b/ext/opcache/Optimizer/scdf.c @@ -87,6 +87,7 @@ static void mark_edge_feasible(scdf_ctx *ctx, int from, const int *to_ptr, int s zend_ssa_block *ssa_block = &ctx->ssa->blocks[to]; zend_ssa_phi *phi; for (phi = ssa_block->phis; phi; phi = phi->next) { + zend_bitset_excl(ctx->phi_var_worklist, phi->ssa_var); ctx->handlers.visit_phi(ctx, ctx->ctx, phi); } }