Hi,
Mikael beat me to a mail saying essentially the same things by
a few minutes, so I'm just adding a few details.
There are two places where inlining can be done:
* In front-end passes where the parsed fortran code is rewritten
before generating the intermediary code for the optimizers. Thomas
König can help you there.
I most certainly can. frontend-passes.cc contains, among other
functionality, a function to inline MATMUL for small sizes, so
much of the infrastructure is already there.
* Directly in the code generation for the optimizers. It is (much)
more complex but can avoid the need for temporaries. I can help you there.
Some links about our development process and conventions:
https://gcc.gnu.org/contribute.html
https://gcc.gnu.org/git.html
And, if you're into hacking gfortran, some starting pointers are at
https://gcc.gnu.org/wiki/GFortranHacking . But always free feel to ask!
Best regards
Thomas