public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3331] Implement relation_oracle::debug.
@ 2021-09-03 13:31 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2021-09-03 13:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:abcd2373635257773452153f02cbb116c91d3e79

commit r12-3331-gabcd2373635257773452153f02cbb116c91d3e79
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Fri Sep 3 10:58:27 2021 +0200

    Implement relation_oracle::debug.
    
    Tested on x86-64 Linux.
    
    gcc/ChangeLog:
    
            * value-relation.cc (relation_oracle::debug): New.
            * value-relation.h (relation_oracle::debug): New.

Diff:
---
 gcc/value-relation.cc | 6 ++++++
 gcc/value-relation.h  | 1 +
 2 files changed, 7 insertions(+)

diff --git a/gcc/value-relation.cc b/gcc/value-relation.cc
index 8edd98b612a..ba01d298521 100644
--- a/gcc/value-relation.cc
+++ b/gcc/value-relation.cc
@@ -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);
+}
diff --git a/gcc/value-relation.h b/gcc/value-relation.h
index e0e2f82c9ae..27158e051bf 100644
--- a/gcc/value-relation.h
+++ b/gcc/value-relation.h
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-03 13:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 13:31 [gcc r12-3331] Implement relation_oracle::debug Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).