diff gcc/gimple-ssa-evrp-analyze.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line diff
--- a/gcc/gimple-ssa-evrp-analyze.h	Thu Oct 25 07:37:49 2018 +0900
+++ b/gcc/gimple-ssa-evrp-analyze.h	Thu Feb 13 11:34:05 2020 +0900
@@ -1,5 +1,5 @@
 /* Support routines for Value Range Propagation (VRP).
-   Copyright (C) 2016-2018 Free Software Foundation, Inc.
+   Copyright (C) 2016-2020 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -23,7 +23,7 @@
 class evrp_range_analyzer
 {
  public:
-  evrp_range_analyzer (void);
+  evrp_range_analyzer (bool update_global_ranges);
   ~evrp_range_analyzer (void)
   {
     delete vr_values;
@@ -37,11 +37,11 @@
   void record_ranges_from_stmt (gimple *, bool);
 
   /* Main interface to retrieve range information.  */
-  value_range *get_value_range (const_tree op)
+  const value_range_equiv *get_value_range (const_tree op)
     { return vr_values->get_value_range (op); }
 
   /* Record a new unwindable range.  */
-  void push_value_range (tree var, value_range *vr);
+  void push_value_range (tree var, value_range_equiv *vr);
 
   /* Dump all the current value ranges.  This is primarily
      a debugging interface.  */
@@ -62,14 +62,18 @@
   DISABLE_COPY_AND_ASSIGN (evrp_range_analyzer);
   class vr_values *vr_values;
 
-  value_range *pop_value_range (tree var);
-  value_range *try_find_new_range (tree, tree op, tree_code code, tree limit);
+  void pop_value_range ();
+  value_range_equiv *try_find_new_range (tree, tree op, tree_code code,
+					 tree limit);
   void record_ranges_from_incoming_edge (basic_block);
   void record_ranges_from_phis (basic_block);
-  void set_ssa_range_info (tree, value_range *);
+  void set_ssa_range_info (tree, value_range_equiv *);
 
   /* STACK holds the old VR.  */
-  auto_vec<std::pair <tree, value_range*> > stack;
+  auto_vec<std::pair <tree, value_range_equiv *> > stack;
+
+  /* True if we are updating global ranges, false otherwise.  */
+  bool m_update_global_ranges;
 };
 
 #endif /* GCC_GIMPLE_SSA_EVRP_ANALYZE_H */