Remove fold_strip_sign_ops
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Oct 2015 20:16:36 +0000 (20:16 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Oct 2015 20:16:36 +0000 (20:16 +0000)
commit4616363b322bb76a47cb9c46491c8297884a2ec4
tree92fc7ae80645bb51dac3ca4e697a59042c1d8bd8
parent7fc2f61331a340fe6d948d69b8f8c1be8a3ae401
Remove fold_strip_sign_ops

This patch deletes fold_strip_sign_ops in favour of the
gimple-ssa-backprop.c pass.

Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.

gcc/
* fold-const.h (fold_strip_sign_ops): Delete.
* fold-const.c (fold_strip_sign_ops): Likewise.
(fold_unary_loc, fold_binary_loc): Remove calls to it.
* builtins.c (fold_builtin_cos, fold_builtin_cosh)
(fold_builtin_ccos): Delete.
(fold_builtin_pow): Don't call fold_strip_sign_ops.
(fold_builtin_hypot, fold_builtin_copysign): Likewise.
Remove fndecl argument.
(fold_builtin_1): Update calls accordingly.  Handle constant
cos, cosh, ccos and ccosh here.

gcc/testsuite/
* gcc.dg/torture/builtin-symmetric-1.c: Don't run at -O0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229140 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/fold-const.c
gcc/fold-const.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/builtin-symmetric-1.c