Rename logb and significand folds
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 27 Oct 2015 11:59:21 +0000 (11:59 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 27 Oct 2015 11:59:21 +0000 (11:59 +0000)
commit83668c858e5d0ee47a21d5a855b56b9f4ca2d93a
tree6092555a6027942cefb170bc56a64538b2bb78d8
parent0122e8e5212582669a58272d3fcc4beba9f42d58
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
gcc/ChangeLog
gcc/builtins.c