guard maybe_set_vectorized_backedge_value calls
authorRichard Biener <rguenther@suse.de>
Wed, 2 Dec 2020 10:07:43 +0000 (11:07 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 2 Dec 2020 11:39:32 +0000 (12:39 +0100)
commita35d5e93654d4947f116f77ff0ed6ab2672d1df2
tree3d30bdbbe7abe1e71913680bd489eb31d0954883
parente34153b0e230bc0a8b9a3f5db1d46a67cbb51788
guard maybe_set_vectorized_backedge_value calls

This makes sure to not call maybe_set_vectorized_backedge_value when
we did not vectorize the latch def candidate.

2020-12-02  Richard Biener  <rguenther@suse.de>

* tree-vect-loop.c (vect_transform_loop_stmt): Return whether
we vectorized a stmt.
(vect_transform_loop): Only call maybe_set_vectorized_backedge_value
when we vectorized the stmt.
gcc/tree-vect-loop.c