This is the mail archive of the gcc-patches@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]

Re: [RFC] Matrix Flattening optimization


Just to clarify:

On Thu, Mar 02, 2006 at 12:43:54PM -0500, Daniel Berlin wrote:
> I'd imagine fortran programs would find it useful as well, as do a lot
> of floating point array intensive apps. The fact that it helps equake is
> not some well known hack, it's just from getting better locality, AFAIK.

I know this, which is why I what I was trying to ask was...

> In general, combining malloc calls and hoisting them out of loops is a
> win, if you couldn't vectorize or interchange the original loop (due to
> dependences, etc).

...whether this occured often enough in Real Code to bother.

How would Fortran programs find it useful?  Shouldn't the Fortran
compiler be generating the array flat in the first place?

-- 
Daniel Jacobowitz
CodeSourcery


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