mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Don't visit the same Phi twice
This commit is contained in:
parent
2558311b4d
commit
d4f15b9506
1 changed files with 1 additions and 0 deletions
|
@ -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_block *ssa_block = &ctx->ssa->blocks[to];
|
||||||
zend_ssa_phi *phi;
|
zend_ssa_phi *phi;
|
||||||
for (phi = ssa_block->phis; phi; phi = phi->next) {
|
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);
|
ctx->handlers.visit_phi(ctx, ctx->ctx, phi);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue