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.
This commit is contained in:
Aldy Hernandez 2021-09-03 10:58:27 +02:00
parent d2e278e26a
commit abcd237363
2 changed files with 7 additions and 0 deletions

View 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);
}

View 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