Move expN folds to match.pd
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 27 Oct 2015 09:32:11 +0000 (09:32 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 27 Oct 2015 09:32:11 +0000 (09:32 +0000)
commit8acda9b2c0ef626ebb8f73598ddc39f427d7f66b
tree9451dee7b1c759995c7a5b8096b5dcdc8b5492e1
parent5ddc84ca83fee1cb1f9bc3dd8aca6349f512d372
Move expN folds to match.pd

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

gcc/
* builtins.c (fold_builtin_exponent): Delete.
(fold_builtin_2): Handle constant expN arguments here.
* match.pd: Fold expN(logN(x)) -> x.

From-SVN: r229410
gcc/ChangeLog
gcc/builtins.c
gcc/match.pd