aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-relation.cc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2022-10-14 14:31:02 -0400
committerAndrew MacLeod <amacleod@redhat.com>2022-10-17 09:13:55 -0400
commitfca529517484bf19098ca9efa77e95534086abdc (patch)
treeadf25f82f749101c6b449e6fdd0480a325608a78 /gcc/value-relation.cc
parent612de72b0d2904b5a5a2b487ce4cb907c768a947 (diff)
downloadgcc-fca529517484bf19098ca9efa77e95534086abdc.zip
gcc-fca529517484bf19098ca9efa77e95534086abdc.tar.gz
gcc-fca529517484bf19098ca9efa77e95534086abdc.tar.bz2
Don't set useless relations.
The oracle will not register nonssense/useless relations, class value_relation shouldn't either. * value-relation.cc (value_relation::dump): Change message. * value-relation.h (value_relation::set_relation): If op1 is the same as op2 do not create a relation.
Diffstat (limited to 'gcc/value-relation.cc')
-rw-r--r--gcc/value-relation.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/value-relation.cc b/gcc/value-relation.cc
index 50fc190..3fb7b96 100644
--- a/gcc/value-relation.cc
+++ b/gcc/value-relation.cc
@@ -891,7 +891,7 @@ value_relation::dump (FILE *f) const
{
if (!name1 || !name2)
{
- fprintf (f, "uninitialized");
+ fprintf (f, "no relation registered");
return;
}
fputc ('(', f);