This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/18902] Naive (default) complex division algorithm
- From: "toon at moene dot indiv dot nluug dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2005 20:23:50 -0000
- Subject: [Bug middle-end/18902] Naive (default) complex division algorithm
- References: <20041209110756.18902.pcarlini@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From toon at moene dot indiv dot nluug dot nl 2005-01-21 20:23 -------
Subject: Re: Naive (default) complex division algorithm
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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18902