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 | |
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
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree-inline.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b5f5bb8..6de454a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-01-30 Richard Henderson <rth@redhat.com> + + * tree-inline.c (walk_tree): Streamline duplicate hash table lookup. + 2003-01-30 Richard Earnshaw <rearnsha@arm.com> * arm.c (arm_compute_initial_elimination_offset): If optimizing for 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; } |