tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Call update_stmt_if_modified.
authorRichard Biener <rguenther@suse.de>
Thu, 21 Dec 2017 04:41:27 +0000 (04:41 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 21 Dec 2017 04:41:27 +0000 (21:41 -0700)
* tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Call
update_stmt_if_modified.

From-SVN: r255910

gcc/ChangeLog
gcc/tree-ssa-dom.c

index 29d32b8bc596af22c576a1f21205409de796f2b0..aa7d1c364f37cf4c856fe9f832f8cbe8581cab3e 100644 (file)
@@ -1,3 +1,8 @@
+2017-12-20  Richard Biener  <rguenther@suse.de>
+
+       * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Call
+       update_stmt_if_modified.
+
 2017-12-20  Wilco Dijkstra  <wdijkstr@arm.com>
 
        PR tree-optimization/83491
index 663d07b6fe90395b7133208576afe3dadb7051b0..c8adf8bfe13215262e274123f93f8085e1097469 100644 (file)
@@ -2012,6 +2012,7 @@ dom_opt_dom_walker::optimize_stmt (basic_block bb, gimple_stmt_iterator si)
                 undefined behavior that get diagnosed if they're left in the
                 IL because we've attached range information to new
                 SSA_NAMES.  */
+             update_stmt_if_modified (stmt);
              edge taken_edge = NULL;
              evrp_range_analyzer.vrp_visit_cond_stmt (as_a <gcond *> (stmt),
                                                       &taken_edge);