genmatch.c (simplify::for_subst_vec): New member.
authorRichard Biener <rguenth@gcc.gnu.org>
Mon, 3 Aug 2015 13:45:22 +0000 (13:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 3 Aug 2015 13:45:22 +0000 (13:45 +0000)
commit5030111533de53f866bff85cd045085e717c7bf6
tree029b574d3fb17e189fbbcf47afaffe0e7a816102
parentd4b71b95fe4842753bc3b695862d2dc160ff2313
genmatch.c (simplify::for_subst_vec): New member.

2015-08-03  Richard Biener  <rguenther@suse.de>

* genmatch.c (simplify::for_subst_vec): New member.
(binary_ok): New helper for for lowering.
(lower_for): Delay substituting operators into result expressions
if we can merge the results eventually again.
(capture_info::walk_result): Adjust for user_id appearing as
result expression operator.
(expr::gen_transform): Likewise.
(dt_simplify::gen_1): Likewise.
(dt_simplify::gen): Pass not substituted operators to tail
functions or initialize local variable with it.
(decision_tree::gen): Adjust function signature.
* match.pd: Fix tests against global code and add default
cases to switch stmts.

From-SVN: r226505
gcc/match.pd