This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Ping ** 0.5 patch, fortran] Inline matmul with conjugate complex numbers
- From: Thomas Koenig <tkoenig at netcologne dot de>
- To: Mikael Morin <mikael dot morin at sfr dot fr>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 21 May 2015 21:13:31 +0200
- Subject: Re: Ping ** 0.5 patch, fortran] Inline matmul with conjugate complex numbers
- Authentication-results: sourceware.org; auth=none
- References: <5559109F dot 80406 at netcologne dot de> <555E1B31 dot 9050806 at netcologne dot de> <555E2297 dot 8060707 at sfr dot fr>
Hi Mikael,
> There is little that is specific to conjg (any elemental function would
> work roughly the same), but anyway, the patch is OK.
Conjg has the advantage that it is an extremely cheap function -
essentially zero cost.
For an arbitrary elemental function, we would have to think about
creating temporaries to make sure we only get n^2 and not n^3
evaluations of whatever function we use.
Thanks for the review!
Committed as rev. 223499.
Regards
Thomas