tree-optimization/103102 - fix error in vectorizer refactoring
authorRichard Biener <rguenther@suse.de>
Mon, 8 Nov 2021 08:08:12 +0000 (09:08 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 8 Nov 2021 08:09:39 +0000 (09:09 +0100)
commit51152076338bc60b8bda8f061be2db97ea5b78de
tree070deabeb6ae8aac4508eca1f487af00f916d57d
parent1f3a33633dd06a8e4861180ab20c9136361c69e6
tree-optimization/103102 - fix error in vectorizer refactoring

This fixes an oversight that caused vectorized epilogues to have
versioning for niters applied.

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

* tree-vectorizer.h (vect_create_loop_vinfo): Add main_loop_info
parameter.
* tree-vect-loop.c (vect_create_loop_vinfo): Likewise.  Set
LOOP_VINFO_ORIG_LOOP_INFO and conditionalize set of
LOOP_VINFO_NITERS_ASSUMPTIONS.
(vect_analyze_loop_1): Adjust.
(vect_analyze_loop): Move loop constraint setting and
SCEV/niter reset here from vect_create_loop_vinfo to perform
it only once.
(vect_analyze_loop_form): Move dumping of symbolic niters
here from vect_create_loop_vinfo.
gcc/tree-vect-loop.c
gcc/tree-vectorizer.h