This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/14541] [tree-ssa] built-in math functions are not fully optimized at tree level


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]