]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove no longer needed STMT_VINFO_REDUC_DEF sets
authorRichard Biener <rguenther@suse.de>
Wed, 27 Aug 2025 13:20:03 +0000 (15:20 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 1 Sep 2025 12:04:24 +0000 (14:04 +0200)
commit3b83232c672cd969ec1f7420da99f7a054554958
tree1bcd236b10344ebd730c7671943684d6e8ff0bee
parentb3355804c7054bce288b643ce127ec5e9d0c2061
Remove no longer needed STMT_VINFO_REDUC_DEF sets

The following removes no longer needed extra sets of STMT_VINFO_REDUC_DEF
and replaces a single remaining one with a more appropriate check.

* tree-vect-loop.cc (vectorizable_live_operation): Check
vect_is_reduction on the SLP node rather than
STMT_VINFO_REDUC_DEF on the stmt.
(vectorizable_reduction): Do not set STMT_VINFO_REDUC_DEF
on live stmts.
gcc/tree-vect-loop.cc