simplify visited flag unsetting in SLP scalar cost computation
authorRichard Biener <rguenther@suse.de>
Wed, 3 Jun 2020 11:17:11 +0000 (13:17 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 3 Jun 2020 11:18:55 +0000 (13:18 +0200)
commitf05c84ac139ccd5398542369aad2b5ff3059ced4
tree3cc08c620728b737e9c89957ed514c79f9b261f9
parent93535a2b40367e6f68433295b37dc52c0e9c2c55
simplify visited flag unsetting in SLP scalar cost computation

This changes the loop over all stmts to a loop over all costed stmts.

2020-06-03  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_bb_vectorization_profitable_p): Loop over
the cost vector to unset the visited flag on stmts.
gcc/tree-vect-slp.c