GCC trunk gets an internal compiler error when building SPEC CPU2000 test 173.applu on powerpc64-linux with options "-O2 -fgraphite-identity -ftree-vectorize" for either -m32 or -m64. Here's a minimized testcase:
subroutine foo (ldmx,ldmy,nx,ny,v) implicit real*8 (a-h, o-z) dimension v(5,ldmx,ldmy,*) dimension tmat(5,5) k = 2 do j = 2, ny-1 do i = 2, nx-1 do ip = 1, 4 do m = ip+1, 5 v(m,i,j,k) = v(m,i,j,k) * m end do end do do m = 5, 1, -1 do l = m+1, 5 v(m,i,j,k) = v(l,i,j,k) end do v(m,i,j,k) = m end do end do end do return end elm3b149% /home/janis/tools/gcc-trunk-anonsvn/bin/gfortran -c -O2 -fgraphite-identity -ftree-vectorize bug.f bug.f: In function foo: bug.f:1:0: internal compiler error: tree check: expected ssa_name, have var_decl in rename_map_elt_info, at sese.c:81 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. The benchmark and testcase compile cleanly with GCC 4.4.2. The failure begins with this patch: http://gcc.gnu.org/viewcvs?view=rev&rev=156711 r156711 | spop | 2010-02-11 19:42:38 +0000 (Thu, 11 Feb 2010) -- Summary: ICE in rename_map_elt_info for Graphite, vect in 173.applu Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: janis at gcc dot gnu dot org GCC target triplet: powerpc64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43097