gimple.h (gimple_phi_result): Add gphi * overload.
authorRichard Biener <rguenther@suse.de>
Thu, 20 Jul 2017 12:37:14 +0000 (12:37 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 20 Jul 2017 12:37:14 +0000 (12:37 +0000)
commit3fa4fad4974c7c1e39ca387b9e55ffb3607879a3
tree057d05e0ccff4798133bb024656d689b2fda464f
parent73c4b4df26d90486debc267cd61c55ab350de4e0
gimple.h (gimple_phi_result): Add gphi * overload.

2017-07-20  Richard Biener  <rguenther@suse.de>

* gimple.h (gimple_phi_result): Add gphi * overload.
(gimple_phi_result_ptr): Likewise.
(gimple_phi_arg): Likewise.  Adjust index assert to only
allow actual argument accesses rather than all slots available
by capacity.
(gimple_phi_arg_def): Add gphi * overload.
* tree-phinodes.c (make_phi_node): Initialize only actual
arguments.
(resize_phi_node): Clear memory not covered by old node,
do not initialize excess argument slots.
(reserve_phi_args_for_new_edge): Initialize new argument slot
completely.

From-SVN: r250385
gcc/ChangeLog
gcc/gimple.h
gcc/tree-phinodes.c