tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize stmts_to_remove.
authorRichard Biener <rguenther@suse.de>
Wed, 19 Oct 2016 07:42:19 +0000 (07:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 19 Oct 2016 07:42:19 +0000 (07:42 +0000)
commitd9700bdb8906e5dbba9bd966cf256aa2c4e45eda
tree2575a2e9a856579290cdf5913772d994ee0b05ae
parentae4206cb7cf8a4e261b339bdb2032fc3a109aa40
tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize stmts_to_remove.

2016-10-19  Richard Biener  <rguenther@suse.de>

* tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
stmts_to_remove.
(evrp_dom_walker::~evrp_dom_walker): Free it.
(evrp_dom_walker::stmts_to_remove): Add.
(evrp_dom_walker::before_dom_children): Mark PHIs and stmts
whose output we fully propagate for removal.  Propagate
into BB destination PHI arguments.
(execute_early_vrp): Remove queued stmts.  Dump value ranges
before stmt removal.

* gcc.dg/tree-ssa/pr61839_2.c: Fix testcase.

From-SVN: r241327
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr61839_2.c
gcc/tree-vrp.c