public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/66182] Unneeded temporary for elemental functions of function results
       [not found] <bug-66182-4@http.gcc.gnu.org/bugzilla/>
@ 2015-05-19 18:08 ` tkoenig at gcc dot gnu.org
  2015-08-30 13:59 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 2+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2015-05-19 18:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66182

--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Of course, this only works if the types of the elemental function and the
function itself match.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug fortran/66182] Unneeded temporary for elemental functions of function results
       [not found] <bug-66182-4@http.gcc.gnu.org/bugzilla/>
  2015-05-19 18:08 ` [Bug fortran/66182] Unneeded temporary for elemental functions of function results tkoenig at gcc dot gnu.org
@ 2015-08-30 13:59 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 2+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-08-30 13:59 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-30 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-66182-4@http.gcc.gnu.org/bugzilla/>
2015-05-19 18:08 ` [Bug fortran/66182] Unneeded temporary for elemental functions of function results tkoenig at gcc dot gnu.org
2015-08-30 13:59 ` dominiq at lps dot ens.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).