]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/102142 - fix typo in loop BB reduc cost adjustment
authorRichard Biener <rguenther@suse.de>
Tue, 31 Aug 2021 09:04:51 +0000 (11:04 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 31 Aug 2021 10:27:04 +0000 (12:27 +0200)
commit67927342290c61d7e054430f1d7a7281f1f97fae
treee5ed7ed50d168232fef26a3cb999b77eabdf4420
parentde7a795c321e76826d123c92b99e73e144666b60
tree-optimization/102142 - fix typo in loop BB reduc cost adjustment

This fixes a typo in the condition guarding the cleanup of the
visited flag of costed scalar stmts.

2021-08-31  Richard Biener  <rguenther@suse.de>

PR tree-optimization/102142
* tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
condition under which to unset the visited flag.

* g++.dg/torture/pr102142.C: New testcase.
gcc/testsuite/g++.dg/torture/pr102142.C [new file with mode: 0644]
gcc/tree-vect-slp.c