This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Yet Another Opportunity to Optimize by the Front End.
- From: Erik Edelmann <erik dot edelmann at iki dot fi>
- To: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Mon, 30 Oct 2006 13:14:50 +0200
- Subject: Re: Yet Another Opportunity to Optimize by the Front End.
- References: <4543499F.2020007@moene.indiv.nluug.nl>
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