This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/34265] Missed optimizations
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Nov 2007 15:49:07 -0000
- Subject: [Bug tree-optimization/34265] Missed optimizations
- References: <bug-34265-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #24 from dominiq at lps dot ens dot fr 2007-11-29 15:49 -------
I think I have now a partial understanding of what is happening for the induct
variants that do not vectorize with the patch in comment #5: they do not
contain any loop inside the k loop. If I replace
rot_q_vector(1) = rot_c_vector(1) - rot_qk_vector(k,1)
rot_q_vector(2) = rot_c_vector(2) - rot_qk_vector(k,2)
rot_q_vector(3) = rot_c_vector(3) - rot_qk_vector(k,3)
by
rot_q_vector(:) = rot_c_vector(:) - rot_qk_vector(k,:)
Then the loop is vectorized again.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34265