This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

set_pseudo_multiple_uses change



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,
				 &note_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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]