[Bug middle-end/18902] Naive (default) complex division algorithm

Toon Moene toon@moene.indiv.nluug.nl
Fri Jan 21 20:23:00 GMT 2005


pcarlini at suse dot de wrote:

> ------- Additional Comments From pcarlini at suse dot de  2005-01-20 12:10 -------
> A first implementation of the algorithm was already in 3_4, under the name
> expand_cmplxdiv_wide (in optabs.cc), then Rth rewrote it in the tree-ssa branch
> as part of the new tree-complex.cc (It would be mildly interesting to see if
> the version in 3_4 works) In the meanwhile, I'm adding Rth in CC of 19486.

Indeed (ChangeLog.1):

Tue May 18 03:53:37 1999  Craig Burley  <craig@jcb-sc.com>

         Improve open-coding of complex divide:
         * flags.h: Declare new front-end-malleable flag.
         * toplev.c: Define new flag.
         * optabs.c (expand_cmplxdiv_straight): New function to do original
         open-coding.
         (expand_cmplxdiv_wide): New function to do new open-coding,
         from Toon Moene, with changes (call to emit_barrier, dropping
         of spurious `ok = 1;', plus the obvious `break;' -> `return 0;').
         (expand_binop): A bit of spacing fixing, while at it.
         Use new functions instead of inlining the open-coding code.

-- 
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
A maintainer of GNU Fortran 95: http://gcc.gnu.org/fortran/



More information about the Gcc-bugs mailing list