a typo in ira-emit.c?

Vladimir N. Makarov vmakarov@redhat.com
Thu Jun 10 04:29:00 GMT 2010


On 06/09/2010 06:45 AM, Amker.Cheng wrote:
> Hi :
> I am studying ira right now, there is following code in change_loop
>
> 	  if (parent_allocno == NULL
> 	      || REGNO (ALLOCNO_REG (parent_allocno)) == REGNO (original_reg))
> 	    {
> 	      if (internal_flag_ira_verbose>  3&&  ira_dump_file)
> 		fprintf (ira_dump_file, "  %i vs parent %i:",
> 			 ALLOCNO_HARD_REGNO (allocno),
> 			 ALLOCNO_HARD_REGNO (parent_allocno));
> 	      set_allocno_reg (allocno, create_new_reg (original_reg));
> 	    }
> Is it possible that parent_allocno == NULL here? or the fprintf might broken.
>    
Yes, I think it can be NULL in some complicated cases when a loop exit 
edge comes not in the parent loop.



More information about the Gcc mailing list