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

rguenth@gcc.gnu.org rguenth@gcc.gnu.org
Mon Jul 14 12:08:00 GMT 2014


Author: rguenth
Date: Mon Jul 14 12:08:28 2014
New Revision: 212516

URL: https://gcc.gnu.org/viewcvs?rev=212516&root=gcc&view=rev
Log:
	* genmatch.c (id_base::id_kind): Add new enum value USER_DEFINED.
	(e_operation::e_operation): New default argument add_new_id. Adjust
	to add id in hash table.
	(simplify): Remove matchers member. New member match.
	(print_matches): Adjust to changes in simplify.
	(decision_tree::insert): Likewise.
	(lower_commutative): New function.
	(check_operator): Likewise.
	(replace_id): Likewise.
	(eat_ident): Likewise.
	(parse_for): Likewise.
	(parse_pattern): Likewise.
	(check_no_user_id): Likewise.
	(check_no_user_id): Likewise, overloaded to take simplify as first
	argument.
	(parse_expr): Call check_operator.
	(main): call parse_pattern, lower_commutative, check_no_user_id.
	* match.pd: Adjust few constant folding patterns to use for.

	testsuite/
	* gcc.dg/tree-ssa/match-rotate.c: New test-case.

Added:
    branches/match-and-simplify/gcc/testsuite/gcc.dg/tree-ssa/match-rotate.c
Modified:
    branches/match-and-simplify/gcc/ChangeLog.mas
    branches/match-and-simplify/gcc/genmatch.c
    branches/match-and-simplify/gcc/match.pd



More information about the Gcc-cvs mailing list