genmatch.c (struct capture_info): Add same_as field.
authorRichard Biener <rguenther@suse.de>
Fri, 24 Jul 2015 12:35:22 +0000 (12:35 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 24 Jul 2015 12:35:22 +0000 (12:35 +0000)
commitfa138f6efd4329d7c27f1614efe14c49780b0d64
tree3a9812d5a6268b8f50bc367825e4677de8e9f03e
parent67fd2789185d5075adc71def1590a3cabceb547a
genmatch.c (struct capture_info): Add same_as field.

2015-07-24  Richard Biener  <rguenther@suse.de>

* genmatch.c (struct capture_info): Add same_as field.
(capture_info::capture_info): Initialize same_as.
(capture_info::walk_match): Compute same_as.
(capture_info::walk_result): Compute stuff for the leader.
(capture_info::walk_c_expr): Likewise.
(dt_simplify::gen_1): Only look at leaders when deciding
to force no side-effects or emit side-effects of omitted operands.

From-SVN: r226152
gcc/ChangeLog
gcc/genmatch.c