------- Comment #16 from jakub at gcc dot gnu dot org 2008-10-02 15:03 ------- Wonder whether just am_vector_index_for_loop shouldn't be: static inline int am_vector_index_for_loop (struct access_matrix *access_matrix, int loop_num) { int depth1 = loop_depth (get_loop (loop_num)); int depth2 = loop_depth (get_loop (AM_LOOP_NEST_NUM (access_matrix))); gcc_assert (depth1 >= depth2 && depth1 - depth2 <= AM_NB_INDUCTION_VARS (access_matrix)); return depth1 - depth2; } Certainly subtracting two loop_num numbers doesn't make much sense to me.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37686