Do not set both LOOP_C_INFINITE and LOOP_C_FINITE on vectorized loop
authorRichard Biener <rguenther@suse.de>
Mon, 5 Jul 2021 10:00:17 +0000 (12:00 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 5 Jul 2021 11:38:42 +0000 (13:38 +0200)
commit88ada5c051c49a1f03602df747a9e6dae675c68e
tree9e197dc46dfc65e15f69bdc1ccf07e2e9a94d775
parent38872c6c0db1b10b17d3913b277c499913208d0b
Do not set both LOOP_C_INFINITE and LOOP_C_FINITE on vectorized loop

The setting is likely a typo and was meant to affect the scalar version
but even there LOOP_C_INFINITE is at most an optimization to the
niter analysis.  Clearly setting it on the vectorized loop which we
just versioned to be _not_ infinite is bogus so the following change
removes this.

2021-07-05  Richard Biener  <rguenther@suse.de>

* tree-vect-loop-manip.c (vect_loop_versioning): Do not
set LOOP_C_INFINITE on the vectorized loop.
gcc/tree-vect-loop-manip.c