aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2025-08-22 14:40:12 +0200
committerRichard Biener <rguenther@suse.de>2025-08-22 15:45:11 +0200
commitbd7c238e3c36c872111eb6ffb0e8f75a4a4d2f41 (patch)
tree47e6b77a53be63dd3e46e31378393ca99b7002b4
parentaf0af4cf81307240cafdf642e913128ad7ac6b81 (diff)
downloadgcc-bd7c238e3c36c872111eb6ffb0e8f75a4a4d2f41.zip
gcc-bd7c238e3c36c872111eb6ffb0e8f75a4a4d2f41.tar.gz
gcc-bd7c238e3c36c872111eb6ffb0e8f75a4a4d2f41.tar.bz2
Pass representative of live SLP node to vect_create_epilog_for_reduction
We passed the reduc_info which is close, but the representative is more spot on and will not collide with making the reduc_info a distinct type. * tree-vect-loop.cc (vectorizable_live_operation): Pass the representative of the PHIs node to vect_create_epilog_for_reduction.
-rw-r--r--gcc/tree-vect-loop.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc
index d6b5042..aab375a 100644
--- a/gcc/tree-vect-loop.cc
+++ b/gcc/tree-vect-loop.cc
@@ -10280,16 +10280,17 @@ vectorizable_live_operation (vec_info *vinfo, stmt_vec_info stmt_info,
if (LOOP_VINFO_EARLY_BREAKS (loop_vinfo))
{
slp_tree phis_node = slp_node_instance->reduc_phis;
+ stmt_info = SLP_TREE_REPRESENTATIVE (phis_node);
for (auto exit : get_loop_exit_edges (LOOP_VINFO_LOOP (loop_vinfo)))
if (exit != LOOP_VINFO_IV_EXIT (loop_vinfo))
{
- vect_create_epilog_for_reduction (loop_vinfo, reduc_info,
+ vect_create_epilog_for_reduction (loop_vinfo, stmt_info,
phis_node, slp_node_instance,
exit);
break;
}
if (LOOP_VINFO_EARLY_BREAKS_VECT_PEELED (loop_vinfo))
- vect_create_epilog_for_reduction (loop_vinfo, reduc_info,
+ vect_create_epilog_for_reduction (loop_vinfo, stmt_info,
phis_node, slp_node_instance,
LOOP_VINFO_IV_EXIT (loop_vinfo));
}