This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Clarification request for ipa/cgraph code
- From: Mike Stump <mrs at apple dot com>
- To: bonzini at gnu dot org
- Cc: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 10 May 2007 11:23:53 -0700
- Subject: Re: Clarification request for ipa/cgraph code
- References: <20070509212637.21A3C24729A@mrs2.apple.com> <4642B83A.70005@lu.unisi.ch>
On May 9, 2007, at 11:14 PM, Paolo Bonzini wrote:
Return TYPE if no type compatible with TYPE has been seen so far,
otherwise return a type compatible with TYPE that has already been
processed.
Ok, that seems to match my expectation of what the code does and is
easier to understand, thanks...
This is what I checked in.
Doing diffs in .:
--- ipa-type-escape.c.~1~ 2007-05-09 14:56:22.000000000 -0700
+++ ipa-type-escape.c 2007-05-10 10:52:52.000000000 -0700
@@ -196,8 +196,9 @@ compare_type_brand (splay_tree_key sk1,
/* This is a trivial algorithm for removing duplicate types. This
would not work for any language that used structural equivalence as
the basis of its type system. */
-/* Return either TYPE if this is first time TYPE has been seen an
- compatible TYPE that has already been processed. */
+/* Return TYPE if no type compatible with TYPE has been seen so far,
+ otherwise return a type compatible with TYPE that has already been
+ processed. */
static tree
discover_unique_type (tree type)
--------------