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 tree-optimization/30038] Call to sin(x), cos(x) should be transformed to sincos(x)



------- Comment #18 from rguenth at gcc dot gnu dot org  2007-01-22 11:11 -------
Subject: Bug 30038

Author: rguenth
Date: Mon Jan 22 11:11:00 2007
New Revision: 121052

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121052
Log:
2007-01-22  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/30038
        * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
        function.
        (execute_cse_sincos_1): Likewise.
        (execute_cse_sincos): Likewise.
        (gate_cse_sincos): Likewise.
        (pass_cse_sincos): New pass CSEing sin() and cos() calls using
        the cexpi() canonicalization of sincos().
        * tree-pass.h (pass_cse_sincos): Declare.
        * passes.c (init_optimization_passes): New pass pas_cse_sincos.

        * gcc.dg/builtins-62.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/builtins-62.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/passes.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-pass.h
    trunk/gcc/tree-ssa-math-opts.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30038


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