Commit c35c7e52 by Richard Henderson Committed by Richard Henderson

* tree-inline.c (walk_tree): Streamline duplicate hash table lookup.

From-SVN: r62151
parent 7e278bae
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> 2003-01-30 Richard Earnshaw <rearnsha@arm.com>
* arm.c (arm_compute_initial_elimination_offset): If optimizing for * arm.c (arm_compute_initial_elimination_offset): If optimizing for
......
...@@ -1530,10 +1530,9 @@ walk_tree (tp, func, data, htab_) ...@@ -1530,10 +1530,9 @@ walk_tree (tp, func, data, htab_)
/* Don't walk the same tree twice, if the user has requested /* Don't walk the same tree twice, if the user has requested
that we avoid doing so. */ 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); slot = htab_find_slot (htab, *tp, INSERT);
if (*slot)
return NULL_TREE;
*slot = *tp; *slot = *tp;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment