]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Implement relation_oracle::debug.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 3 Sep 2021 08:58:27 +0000 (10:58 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 3 Sep 2021 13:30:56 +0000 (15:30 +0200)
Tested on x86-64 Linux.

gcc/ChangeLog:

* value-relation.cc (relation_oracle::debug): New.
* value-relation.h (relation_oracle::debug): New.

gcc/value-relation.cc
gcc/value-relation.h

index 8edd98b612a4074e683abf0196e9bf278b39e264..ba01d29852112c21ceeab0bb8b0ea8c94e9fe9c0 100644 (file)
@@ -1164,3 +1164,9 @@ relation_oracle::dump (FILE *f) const
        dump (f, BASIC_BLOCK_FOR_FN (cfun, i));
       }
 }
+
+void
+relation_oracle::debug () const
+{
+  dump (stderr);
+}
index e0e2f82c9aed66e72210baa97e6a3655a7ca0e94..27158e051bf0ba462395d15c1e96781d3fa3137c 100644 (file)
@@ -142,6 +142,7 @@ public:
 
   void dump (FILE *f, basic_block bb) const;
   void dump (FILE *f) const;
+  void debug () const;
 private:
   bitmap m_tmp, m_tmp2;
   bitmap m_relation_set;  // Index by ssa-name. True if a relation exists