This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14541] [tree-ssa] built-in math functions are not fully optimized at tree level
- From: "amacleod at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2004 15:30:08 -0000
- Subject: [Bug optimization/14541] [tree-ssa] built-in math functions are not fully optimized at tree level
- References: <20040312001701.14541.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From amacleod at redhat dot com 2004-03-12 15:30 -------
Which expanders?
Am I looking at something wrong? I see optimized tree code:
test (d1)
{
double T.1;
double T.0;
<bb 0>:
if (log (exp (d1<D1066>)) != d1<D1066>) goto <L0>; else goto <L1>;
<L0>:;
link_failure () [tail call];
<L1>:;
return;
}
And if I put a breakpoint in expand_builtin_mathfn() I see:
Breakpoint 4, expand_builtin_mathfn (exp=0x400231e0, target=0x0, subtarget=0x0)
at /src/tree-ssa/2004-03-09/gcc/gcc/builtins.c:1704
1704 tree fndecl = get_callee_fndecl (exp);
(gdb) p print_generic_expr (stderr, exp, 64)
log (exp (d1))
$1 = void
Its true that we dont get rid of the link_failure(), but I dont see a temp in
there...
Andrew
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14541