diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-10-27 11:59:21 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-10-27 11:59:21 +0000 |
commit | 83668c858e5d0ee47a21d5a855b56b9f4ca2d93a (patch) | |
tree | 6092555a6027942cefb170bc56a64538b2bb78d8 /gcc/tree-vect-data-refs.c | |
parent | 0122e8e5212582669a58272d3fcc4beba9f42d58 (diff) | |
download | gcc-83668c858e5d0ee47a21d5a855b56b9f4ca2d93a.zip gcc-83668c858e5d0ee47a21d5a855b56b9f4ca2d93a.tar.gz gcc-83668c858e5d0ee47a21d5a855b56b9f4ca2d93a.tar.bz2 |
Rename logb and significand folds
fold_builtin_logb and fold_builtin_significand now only handle
constant arguments, so this patch renames them to fold_const...,
to match fold_const_builtin_pow. The idea is to differentiate
constant-only folds so that they can be moved to a const_binop-like
function in future.
The functions also had some unnecessary calls to STRIP_NOPS, which
I think are left over from code that has already moved to match.pd.
Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.
gcc/
* builtins.c (fold_builtin_logb): Rename to...
(fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
(fold_builtin_significand): Rename to...
(fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
(fold_builtin_1): Update accordingly.
From-SVN: r229433
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
0 files changed, 0 insertions, 0 deletions