[Bug tree-optimization/91435] Better induction variable for vectorization
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 13 09:45:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91435
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #0)
> If we are only ever going to use x+2, why not use that instead, initialize
> with {2,3,4,...}, and skip the +2 at every iteration?
Or since we have another variable
# vect_vec_iv_.13_57 = PHI <{ 1, 2, 3, 4, 5, 6, 7, 8 }(5),
vect_vec_iv_.13_58(6)>
vect_vec_iv_.13_58 = vect_vec_iv_.13_57 + { 8, 8, 8, 8, 8, 8, 8, 8 };
use that one +1 and maintain one less variable.
More information about the Gcc-bugs
mailing list