diff options
author | Richard Henderson <rth@redhat.com> | 2003-01-30 10:09:15 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-01-30 10:09:15 -0800 |
commit | c35c7e526f1da3895f6a1eb33b8c68585fd6c27c (patch) | |
tree | dc826ca4100077610ea2f29dd4a0a0ee70f617ab /gcc/tree-inline.c | |
parent | 7e278bae4f763445abe8b6c79ae684d7915eb939 (diff) | |
download | gcc-c35c7e526f1da3895f6a1eb33b8c68585fd6c27c.zip gcc-c35c7e526f1da3895f6a1eb33b8c68585fd6c27c.tar.gz gcc-c35c7e526f1da3895f6a1eb33b8c68585fd6c27c.tar.bz2 |
* tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
From-SVN: r62151
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index d2f1a0e..e4bdf12 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1530,10 +1530,9 @@ walk_tree (tp, func, data, htab_) /* Don't walk the same tree twice, if the user has requested that we avoid doing so. */ - if (htab_find (htab, *tp)) - return NULL_TREE; - /* If we haven't already seen this node, add it to the table. */ slot = htab_find_slot (htab, *tp, INSERT); + if (*slot) + return NULL_TREE; *slot = *tp; } |