On Tuesday 21 June 2011 17:08:17 Richard Guenther wrote: > The following is a patch^Whack that should handle almost all > array exprs. Well, tried on the following testcase: > > subroutine foo (dst, bar, ni, nj) > integer, intent(in) :: ni, nj > double precision, intent(in) :: bar(ni, nj) > double precision, intent(out) :: dst(ni, nj) > > dst(2:ni-1,2:nj-1) = 5. + bar(2:ni-1,2:nj-1) > end subroutine foo > > I failed to see where the scalarizer inserts the temporary vars it > creates into the scope blocks (thus the gimplify.c hunk ...). Any > help here is welcome. If you are talking about the partial offset calculations in nested loops, they come from gfc_trans_preloop_setup. Sorry, no time to help now.
Mikael PS: nice to see MEAs come back. :-)