r229308 - in /trunk/gcc: ChangeLog builtins.c g...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Mon Oct 26 09:18:00 GMT 2015


Author: rsandifo
Date: Mon Oct 26 09:18:30 2015
New Revision: 229308

URL: https://gcc.gnu.org/viewcvs?rev=229308&root=gcc&view=rev
Log:
Move cexp simplifications to match.pd

This required reinstating support for captures in the result
of a simplification.  That part (genmatch.c) is by Richard B.

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

gcc/
2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
	    Richard Biener  <rguenther@suse.de>

	* genmatch.c (dt_simplify::gen): Skip captures that are
	part of the result.
	(parser::parse_expr): Allow captures in results too.
	* builtins.c (fold_builtin_cexp): Delete.
	(fold_builtin_1): Handle constant cexp arguments here.
	* match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/genmatch.c
    trunk/gcc/match.pd



More information about the Gcc-cvs mailing list