[patch, fortran] Function call optimization
Tobias Burnus
burnus@net-b.de
Fri Mar 18 23:23:00 GMT 2011
Thomas Koenig wrote:
> + if (!(*e)->value.function.esym->attr.pure
> + && !(*e)->value.function.esym->attr.implicit_pure
> + && !(*e)->value.function.esym->attr.elemental)
> + return 0;
I have not followed the discussion nor have I fully read the patch, but
what's the reason for allowing ELEMENTAL functions? I understand the
PURE and the implicitly pure part. But without looking at the
scalarizer, I would assume that the same reasons which speak against
non-elemental impure functions should also speak against IMPURE
ELEMENTAL functions, don't they?
Tobias
More information about the Fortran
mailing list