Memory partitioning considered harmful (!?)

Jakub Jelinek jakub@redhat.com
Mon Jan 29 14:16:00 GMT 2007


On Mon, Jan 29, 2007 at 09:10:08AM -0500, Daniel Berlin wrote:
> On 1/29/07, Richard Guenther <rguenther@suse.de> wrote:
> >
> >I see more and more cases where we do strange memory partition decisions
> >that end up pessimizing loop constructs a lot.  For example the fatigue
> >(polyhedron) benchmark has a loop like
> >
> >               do n = 1, number_of_sample_points
> >                   coefficient = (radius(n) / radius_of_curvature) *
> >sin(twopi *            &
> >
> >real(spin_frequency,LONGreal) * time)
> >                   strain_tensor(1,1,n) = - coefficient * Poissons_ratio
> 
> Out of curiosity, how is n aliased at all in the above?
> IE why is it in a memory partition. It's not address taken in any
> visible way, unless fortran does something behind your back :)

Fortran passes vars by reference rather than by value.

	Jakub



More information about the Gcc-patches mailing list