This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/39643] [4.5 Regression]: cris-elf gcc.dg/torture/builtin-math-3.c -O1 and -Os sincos one
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Apr 2009 11:14:36 -0000
- Subject: [Bug tree-optimization/39643] [4.5 Regression]: cris-elf gcc.dg/torture/builtin-math-3.c -O1 and -Os sincos one
- References: <bug-39643-507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenth at gcc dot gnu dot org 2009-04-06 11:14 -------
For cris-axis-elf we do not fold
one_1 = 1.0e+0;
oneL_2 = 1.0e+0;
__builtin_sincos (1.0e+0, &s, &c);
to a constant because __builtin_sincos did not get transformed to
__builtin_cexpi.
We fold it later via the fold-all-builtins pass but nothing promotes
memory to registers after that pass with -O1. I have a patch that should
fix this.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Keywords| |missed-optimization
Last reconfirmed|2009-04-05 22:00:23 |2009-04-06 11:14:36
date| |
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39643