As far as I can determine, this is no longer a problem: We will
not try to remove the defining instructions (this is only done if
the value is known by SCCP itself) and we also only determine
non-refcounted values in this way, so it is not a problem if the
FREE is omitted.
zend_ssa *ssa = ctx->scdf.ssa;
zend_ssa_var_info *info = &ssa->var_info[var_num];
- if (ssa->vars[var_num].var >= ctx->scdf.op_array->last_var) {
- // TODO Non-CVs may cause issues with FREEs
- return NULL;
- }
-
if (info->type & MAY_BE_UNDEF) {
return NULL;
}