Re: [PATCH 2/5] vect: Use generalised accessors to build SLP nodes

2021-11-12 Thread Richard Biener via Gcc-patches
On November 12, 2021 6:59:22 PM GMT+01:00, Richard Sandiford via Gcc-patches wrote: >This patch adds: > >- gimple_num_args >- gimple_arg >- gimple_arg_ptr > >for accessing rhs operands of an assignment, call or PHI. This is >similar to the existing gimple_get_lhs. > >I guess there's a danger

[PATCH 2/5] vect: Use generalised accessors to build SLP nodes

2021-11-12 Thread Richard Sandiford via Gcc-patches
This patch adds: - gimple_num_args - gimple_arg - gimple_arg_ptr for accessing rhs operands of an assignment, call or PHI. This is similar to the existing gimple_get_lhs. I guess there's a danger that these routines could be overused, such as in cases where gimple_assign_rhs1 etc. would be