From abcd2373635257773452153f02cbb116c91d3e79 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Fri, 3 Sep 2021 10:58:27 +0200 Subject: [PATCH] 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. --- 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