How to express the fact that arguments don't escape?
Thomas Koenig
tkoenig@netcologne.de
Sat Aug 15 20:35:00 GMT 2009
On Sat, 2009-08-15 at 18:27 +0200, Tobias Schlüter wrote:
> I'm a bit worried that this could pessimize code with very short
> functions but lots of arguments, i.e. when the copying time becomes
> comparable to the runtime.
I don't think this will be a problem. SSA tends to generated quite a
lot of intermediate variables anyway (just look at a typical dump for
-fdump-tree-optimized), and all the unnecessary stores will be optimized
away in the generated assembly. We shouldn't do this if we aren't
optimizing, though.
Richard, do you concur?
Thomas
More information about the Fortran
mailing list