public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "roger at eyesopen dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/19988] [4.0 Regression] pessimizes fp multiply-add/subtract combo Date: Sat, 19 Feb 2005 16:58:00 -0000 [thread overview] Message-ID: <20050219054139.12784.qmail@sourceware.org> (raw) In-Reply-To: <20050215225352.19988.stevenj@fftw.org> ------- Additional Comments From roger at eyesopen dot com 2005-02-19 05:41 ------- Re: comment #5 For floating point expressions, -(A+B) is only transformed into (-A)-B or (-B)-A when the user explicitly specifies -ffast-math, i.e. only when flag_unsafe_math_optimizations is true. Re: comment #6 Interesting. Although on a handful of rs6000 cores (mpccore, 601 and 603), a fused-multiply-add is more expensive that an addition, its always a win to perform two fma's rather than a mult and two adds. It might be possible (with some work) to teach combine to un-CSE the following: double x; double y; void foo(double p, double q, double r, double s) { double t = p * q; x = t + r; y = t + s; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19988
next prev parent reply other threads:[~2005-02-19 5:41 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-02-16 4:49 [Bug c/19988] New: " gcc-bugzilla at gcc dot gnu dot org 2005-02-16 5:15 ` [Bug middle-end/19988] " pinskia at gcc dot gnu dot org 2005-02-16 6:33 ` pinskia at gcc dot gnu dot org 2005-02-16 19:00 ` pinskia at gcc dot gnu dot org 2005-02-16 19:01 ` pinskia at gcc dot gnu dot org 2005-02-16 23:47 ` roger at eyesopen dot com 2005-02-17 3:35 ` athena at fftw dot org 2005-02-17 3:38 ` athena at fftw dot org 2005-02-19 16:58 ` roger at eyesopen dot com [this message] 2005-04-21 5:03 ` [Bug middle-end/19988] [4.0/4.1 " mmitchel at gcc dot gnu dot org 2005-07-08 1:42 ` mmitchel at gcc dot gnu dot org 2005-08-17 12:45 ` pinskia at gcc dot gnu dot org 2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050219054139.12784.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).