aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-10-08 16:54:37 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-10-08 16:54:37 +0000
commit4835c97845294868e600ab765385b5c0b95157f5 (patch)
tree19778f9222f6c9f4a0ef4c2ad38bf8ab576baaf5 /gcc/tree-ssa-phiopt.c
parent68e57f040c6330eb853551622d458a67d6f9e572 (diff)
downloadgcc-4835c97845294868e600ab765385b5c0b95157f5.zip
gcc-4835c97845294868e600ab765385b5c0b95157f5.tar.gz
gcc-4835c97845294868e600ab765385b5c0b95157f5.tar.bz2
Move sqrt and cbrt simplifications to match.pd
This patch moves the sqrt and cbrt simplification rules to match.pd. builtins.c now only does the constant folding. Bootstrapped & regression-tested on x86_64-linux-gnu. gcc/ * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete. (fold_builtin_1): Update accordingly. Handle constant arguments here. * match.pd: Add rules previously handled by fold_builtin_sqrt and fold_builtin_cbrt. gcc/testsuite/ * gcc.dg/builtins-47.c: Test the optimized dump instead. From-SVN: r228616
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
0 files changed, 0 insertions, 0 deletions