]> git.ipfire.org Git - thirdparty/gcc.git/commit
Modernize vectorizable_lane_reducing
authorRichard Biener <rguenther@suse.de>
Thu, 7 Aug 2025 12:57:09 +0000 (14:57 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 8 Aug 2025 07:06:50 +0000 (09:06 +0200)
commit19102eab72ea5bdaa220564033f15a0f354d6254
tree47e9266f16849f0589ea80b58417855b9d9e109f
parentf38ebe459af792e097d7923dd49dc19d79d52427
Modernize vectorizable_lane_reducing

The following avoids STMT_VINFO_VECTYPE usage in
vect_is_emulated_mixed_dot_prod and makes sure to register the SLP
node when costing in vectorizable_lane_reducing.

* tree-vect-loop.cc (vect_is_emulated_mixed_dot_prod): Get
the SLP node rather than the stmt_info.
(vectorizable_lane_reducing): Adjust, pass SLP node to costing.
(vect_transform_reduction): Adjust.
gcc/tree-vect-loop.cc