This makes the SLP vectorizer dump the def we use for a splat to aid debugging.
Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. 2022-02-22 Richard Biener <rguent...@suse.de> * tree-vect-slp.cc (vect_build_slp_tree_2): Dump the def used for a splat. --- gcc/tree-vect-slp.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc index 9188d727e33..341bd5220a5 100644 --- a/gcc/tree-vect-slp.cc +++ b/gcc/tree-vect-slp.cc @@ -2202,7 +2202,8 @@ out: { if (dump_enabled_p ()) dump_printf_loc (MSG_NOTE, vect_location, - "Using a splat of the uniform operand\n"); + "Using a splat of the uniform operand %G", + first_def->stmt); oprnd_info->first_dt = vect_external_def; } } -- 2.34.1