r216549 - in /branches/match-and-simplify/gcc: ...

rguenth@gcc.gnu.org rguenth@gcc.gnu.org
Wed Oct 22 10:34:00 GMT 2014


Author: rguenth
Date: Wed Oct 22 10:34:56 2014
New Revision: 216549

URL: https://gcc.gnu.org/viewcvs?rev=216549&root=gcc&view=rev
Log:
2014-10-22  Richard Biener  <rguenther@suse.de>

	* generic-match.h: New file.
	* generic-match-head.c: Include generic-match.h, not gimple-match.h.
	* fold-const.c: Include generic-match.h.
	(fold_unary_loc): Remove local prototype of generic_simplify.
	(fold_binary_loc): Likewise.
	(fold_ternary_loc): Likewise.

2014-10-22  Richard Biener  <rguenther@suse.de>

	* fold-const.c (fold_unary_loc): Adjust for generic_simplify
	prototype change.
	(fold_binary_loc): Likewise.
	(fold_ternary_loc): Likewise.
	(fold_binary_loc): Remove patterns implemented by
	match-constant-folding.pd.
	* match.pd: Fold in match-constant-folding.pd and adjust
	it for the non_lvalue changes and make it match fold-const.c
	* match-constant-folding.pd: Remove.
	more closely.
	* genmatch.c (expr::gen_transform): Use fold_buildN_loc
	and build_call_expr_loc.
	(dt_simplify::gen): Drop non_lvalue for GIMPLE, use
	non_lvalue_loc to build it for GENERIC.
	(decision_tree::gen_generic): Add location argument to
	generic_simplify prototype.

Added:
    branches/match-and-simplify/gcc/generic-match.h
Removed:
    branches/match-and-simplify/gcc/match-constant-folding.pd
Modified:
    branches/match-and-simplify/gcc/ChangeLog.mas
    branches/match-and-simplify/gcc/fold-const.c
    branches/match-and-simplify/gcc/generic-match-head.c
    branches/match-and-simplify/gcc/genmatch.c
    branches/match-and-simplify/gcc/match.pd



More information about the Gcc-cvs mailing list