This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
set_pseudo_multiple_uses change
- To: gcc-patches at gcc dot gnu dot org, Michael Hayes <mhayes at cygnus dot com>
- Subject: set_pseudo_multiple_uses change
- From: Geoffrey Keating <geoffk at thief dot cygnus dot com>
- Date: Tue, 12 Sep 2000 11:22:33 -0700
Hi Michael,
I don't understand why you made this change:
2000-09-12 Michael Hayes <mhayes@cygnus.com>
...
(set_pseudo_multiple_uses): Pass regs pointer.
What was wrong with the previous code? It looked like:
{
/* If either of these insns uses the biv and sets a pseudo
that has more than one usage, then the biv has uses
other than counting since it's used to derive a value
that is used more than one time. */
int note_set_pseudo_multiple_uses_retval = 0;
note_stores (PATTERN (p), note_set_pseudo_multiple_uses,
¬e_set_pseudo_multiple_uses_retval);
if (note_set_pseudo_multiple_uses_retval)
{
no_use_except_counting = 0;
break;
}
}
(and had the useful property that it actually worked, because
note_set_pseudo_multiple_uses is still expecting a pointer to an
int...)
--
Geoff Keating <geoffk@cygnus.com>