This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/34265] Missed optimizations



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]