From: Dmitry Stogov Date: Mon, 27 Jul 2020 14:31:02 +0000 (+0300) Subject: Remove unused fields X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b23188962e97a85bffd34bf40db340a2284d7708;p=php Remove unused fields --- diff --git a/ext/opcache/Optimizer/zend_call_graph.h b/ext/opcache/Optimizer/zend_call_graph.h index f910833aaf..c31d8cef03 100644 --- a/ext/opcache/Optimizer/zend_call_graph.h +++ b/ext/opcache/Optimizer/zend_call_graph.h @@ -54,12 +54,9 @@ struct _zend_func_info { zend_call_info *callee_info; /* which functions are called from this one */ zend_call_info **call_map; /* Call info associated with init/call/send opnum */ int num_args; /* (-1 - unknown) */ + int return_value_used; /* -1 unknown, 0 no, 1 yes */ zend_recv_arg_info *arg_info; zend_ssa_var_info return_info; - zend_func_info *clone; - int clone_num; - int return_value_used; /* -1 unknown, 0 no, 1 yes */ - void *codegen_data; }; typedef struct _zend_call_graph { diff --git a/ext/opcache/Optimizer/zend_dump.c b/ext/opcache/Optimizer/zend_dump.c index ce23c4d473..d22eb55908 100644 --- a/ext/opcache/Optimizer/zend_dump.c +++ b/ext/opcache/Optimizer/zend_dump.c @@ -882,9 +882,6 @@ void zend_dump_op_array_name(const zend_op_array *op_array) } else { fprintf(stderr, "%s", "$_main"); } - if (func_info && func_info->clone_num > 0) { - fprintf(stderr, "_@_clone_%d", func_info->clone_num); - } } void zend_dump_op_array(const zend_op_array *op_array, uint32_t dump_flags, const char *msg, const void *data)