re PR middle-end/82123 (spurious -Wformat-overflow warning for converted vars)
authorJeff Law <law@redhat.com>
Tue, 20 Feb 2018 18:49:46 +0000 (11:49 -0700)
committerJeff Law <law@gcc.gnu.org>
Tue, 20 Feb 2018 18:49:46 +0000 (11:49 -0700)
PR middle-end/82123
PR tree-optimization/81592
PR middle-end/79257
* gimple-ssa-evrp-analyze.c (evrp_range_analyzer::enter): Do nothing
if not optimizing.
(evrp_range_analyzer::record_ranges_from_stmt): Likewise.
(evrp_range_analyzer::pop_to_marker): Likewise.

From-SVN: r257851

gcc/ChangeLog
gcc/gimple-ssa-evrp-analyze.c

index 2c679c9436e20220c5003dd7979e29caebef9137..748be06d67117a002af76058c7feba15da303d7d 100644 (file)
@@ -1,3 +1,13 @@
+2018-02-20  Jeff Law  <law@redhat.com>
+
+       PR middle-end/82123
+       PR tree-optimization/81592
+       PR middle-end/79257
+       * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::enter): Do nothing
+       if not optimizing.
+       (evrp_range_analyzer::record_ranges_from_stmt): Likewise.
+       (evrp_range_analyzer::pop_to_marker): Likewise.
+
 2018-02-20  Richard Sandiford  <richard.sandiford@linaro.org>
 
        PR tree-optimization/84419
index 2eb2769303d29dda0e76845628fa552fac5c5dad..b9dcf906ff77505272522eb0c2139414a163762a 100644 (file)
@@ -69,6 +69,8 @@ evrp_range_analyzer::push_marker ()
 void
 evrp_range_analyzer::enter (basic_block bb)
 {
+  if (!optimize)
+    return;
   push_marker ();
   record_ranges_from_incoming_edge (bb);
   record_ranges_from_phis (bb);
@@ -279,6 +281,9 @@ evrp_range_analyzer::record_ranges_from_stmt (gimple *stmt, bool temporary)
 {
   tree output = NULL_TREE;
 
+  if (!optimize)
+    return;
+
   if (dyn_cast <gcond *> (stmt))
     ;
   else if (stmt_interesting_for_vrp (stmt))
@@ -390,6 +395,8 @@ evrp_range_analyzer::pop_to_marker (void)
 void
 evrp_range_analyzer::leave (basic_block bb ATTRIBUTE_UNUSED)
 {
+  if (!optimize)
+    return;
   pop_to_marker ();
 }