[Bug fortran/66182] Unneeded temporary for elemental functions of function results
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Sun Aug 30 13:59:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66182
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-08-30
Ever confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Note that matmul does not seem inlined for the test in comment 0: I see
call __gfortran_matmul_c4
in the assembly.
> This should be replaced by
>
> c = matmul(a,b)
> c = conjg(c)
For large matrices it would be even better to do
c(i,j) = conjg(c(i,j))
after c(i,j) has been computed.
More information about the Gcc-bugs
mailing list