Yet Another Opportunity to Optimize by the Front End.
Erik Edelmann
erik.edelmann@iki.fi
Mon Oct 30 12:23:00 GMT 2006
On Sat, Oct 28, 2006 at 02:14:23PM +0200, Toon Moene wrote:
> Now this idiom would be greatly sped up if the front end didn't compile
> this the obvious way:
>
> allocate (temp (m,n))
> loop over n
> loop over m
> temp (...) = x(...) == y(...)
> loop over n
> loop over m
> all = all .and. temp(...)
>
> and evaluated the reduction operator "all" directly into a register.
>
> Is this already considered by some on their to-do list ?
>
> [ The same goes for "any", "sum", etc. ]
Since I use functions like ALL, ANY and SUM quite a lot, I'm not
uninterested. Just don't expect me to do anything about it anytime
soon.
Erik
More information about the Fortran
mailing list