re PR tree-optimization/30038 (Call to sin(x), cos(x) should be transformed to sincos(x))
authorRichard Guenther <rguenther@suse.de>
Mon, 22 Jan 2007 11:11:00 +0000 (11:11 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 22 Jan 2007 11:11:00 +0000 (11:11 +0000)
commit2f397a93c0b178cb905f5ce0de61c4ea94d5fa9a
tree4e252e76c93f9c1a661427d2bf5a5d9b4e1dfcf9
parent609610af72877b0ddadef9c20301d0b367e7ddc4
re PR tree-optimization/30038 (Call to sin(x), cos(x) should be transformed to sincos(x))

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.

From-SVN: r121052
gcc/ChangeLog
gcc/passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-62.c [new file with mode: 0644]
gcc/tree-pass.h
gcc/tree-ssa-math-opts.c