This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: Yet Another Opportunity to Optimize by the Front End.


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


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