public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17030] New: gfortran does not optimize ABS of complex that well
@ 2004-08-14 19:53 pinskia at gcc dot gnu dot org
2004-08-14 19:53 ` [Bug fortran/17030] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-14 19:53 UTC (permalink / raw)
To: gcc-bugs
gfortran just calls cabsf even with -ffast-math which changes cabsf into sqrt (r*r+i*i) which improves
code generation a huge amount and should improve facerec a huge amount too.
--
Summary: gfortran does not optimize ABS of complex that well
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17030
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/17030] gfortran does not optimize ABS of complex that well
2004-08-14 19:53 [Bug fortran/17030] New: gfortran does not optimize ABS of complex that well pinskia at gcc dot gnu dot org
@ 2004-08-14 19:53 ` pinskia at gcc dot gnu dot org
2004-08-15 19:26 ` pinskia at gcc dot gnu dot org
2004-08-15 19:26 ` cvs-commit at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-14 19:53 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-08-14 19:53:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17030
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/17030] gfortran does not optimize ABS of complex that well
2004-08-14 19:53 [Bug fortran/17030] New: gfortran does not optimize ABS of complex that well pinskia at gcc dot gnu dot org
2004-08-14 19:53 ` [Bug fortran/17030] " pinskia at gcc dot gnu dot org
2004-08-15 19:26 ` pinskia at gcc dot gnu dot org
@ 2004-08-15 19:26 ` cvs-commit at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-15 19:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-08-15 19:26 -------
Subject: Bug 17030
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2004-08-15 19:26:32
Modified files:
gcc/fortran : ChangeLog f95-lang.c trans-decl.c
trans-intrinsic.c trans.h
Log message:
2004-08-15 Andrew Pinski <apinski@apple.com>
PR fortran/17030
* f95-lang.c (gfc_init_builtin_functions): Initialize the builtins
for cabs{,f} and copysign{,f}.
* trans-decl.c (gfor_fndecl_math_cabsf): Delete.
(gfor_fndecl_math_cabs): Delete.
(gfor_fndecl_math_sign4): Delete.
(gfor_fndecl_math_sign8): Delete.
(gfc_build_intrinsic_function_decls): Remove the
initializing of cabs{,f} and copysign{,f} functions.
* trans-intrinsic.c (gfc_conv_intrinsic_abs): Use the builtins
instead of the functions definitions.
(gfc_conv_intrinsic_sign): Likewise.
* trans.h (gfor_fndecl_math_cabsf): Delete.
(gfor_fndecl_math_cabs): Delete.
(gfor_fndecl_math_sign4): Delete.
(gfor_fndecl_math_sign8): Delete.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.150&r2=1.151
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/f95-lang.c.diff?cvsroot=gcc&r1=1.11&r2=1.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-decl.c.diff?cvsroot=gcc&r1=1.30&r2=1.31
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-intrinsic.c.diff?cvsroot=gcc&r1=1.13&r2=1.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans.h.diff?cvsroot=gcc&r1=1.10&r2=1.11
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17030
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/17030] gfortran does not optimize ABS of complex that well
2004-08-14 19:53 [Bug fortran/17030] New: gfortran does not optimize ABS of complex that well pinskia at gcc dot gnu dot org
2004-08-14 19:53 ` [Bug fortran/17030] " pinskia at gcc dot gnu dot org
@ 2004-08-15 19:26 ` pinskia at gcc dot gnu dot org
2004-08-15 19:26 ` cvs-commit at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-15 19:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-15 19:26 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17030
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-15 19:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-14 19:53 [Bug fortran/17030] New: gfortran does not optimize ABS of complex that well pinskia at gcc dot gnu dot org
2004-08-14 19:53 ` [Bug fortran/17030] " pinskia at gcc dot gnu dot org
2004-08-15 19:26 ` pinskia at gcc dot gnu dot org
2004-08-15 19:26 ` cvs-commit at gcc dot gnu dot org
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).