r236977 - in /trunk/gcc: ChangeLog genmatch.c m...

rguenth@gcc.gnu.org rguenth@gcc.gnu.org
Wed Jun 1 09:00:00 GMT 2016


Author: rguenth
Date: Wed Jun  1 09:00:57 2016
New Revision: 236977

URL: https://gcc.gnu.org/viewcvs?rev=236977&root=gcc&view=rev
Log:
2016-06-01  Richard Biener  <rguenther@suse.de>

	* genmatch.c (comparison_code_p): New predicate.
	(swap_tree_comparison): New function.
	(commutate): Add for_vec parameter to append new for entries.
	Support commutating relational operators by swapping it alongside
	operands.
	(lower_commutative): Adjust.
	(dt_simplify::gen): Do not pass artificial operators to gen
	functions.
	(decision_tree::gen): Do not add artificial operators as parameters.
	(parser::parse_expr): Verify operator commutativity when :c is
	applied.  Allow :C to override this.
	* match.pd: Adjust patterns to use :C instead of :c where required.

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



More information about the Gcc-cvs mailing list