genmatch.c (simplify::for_subst_vec): New member.
authorRichard Biener <rguenther@suse.de>
Mon, 3 Aug 2015 13:28:46 +0000 (13:28 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 3 Aug 2015 13:28:46 +0000 (13:28 +0000)
commitd4b71b95fe4842753bc3b695862d2dc160ff2313
treeb0cc92d24bb9bd7cc191e1350e787968d64b9921
parent1d2fdec6bc1fe203e9df6f5e5edf69f50af0b35d
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: r226504
gcc/ChangeLog
gcc/genmatch.c