This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/19988] [4.3/4.4/4.5 Regression] pessimizes fp multiply-add/subtract combo
- From: "matz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2010 20:10:38 -0000
- Subject: [Bug middle-end/19988] [4.3/4.4/4.5 Regression] pessimizes fp multiply-add/subtract combo
- References: <bug-19988-9955@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #20 from matz at gcc dot gnu dot org 2010-01-16 20:10 -------
It obviously could do the same. It all depends on the answer to this
question:
Do we want to deal with this via canonicalization of expressions, and if
yes, then also on the outcome of our discussion of where that should happen
(fold or special code in VN dealing with just value numbers).
If no, then something like your patch can be done.
In this case I'm leaning towards Paolo (comment #14), we possibly might want
to canonicalize towards fewer constants (hence towards positive constants),
when otherwise the number of operations remains the same (hence treating
PLUS_EXPR and MINUS_EXPR as equivalent).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19988