Bug in reload_cse_move2add()

Richard Earnshaw rearnsha@arm.com
Wed Jan 17 08:07:00 GMT 2001


> > I think we could handle it by manually striping that part off and
> > passing it as the data operand to move2add_note_stores; then, if
> > data was non-null, we would always set the register as unknown if it
> > was modified.
> 
> I think note_stores is used in more places, and data is to be passed
> to fun() exactly as passed to note_stores().


I wasn't suggesting note_stores should do this; but that 
reload_cse_move2add should look at the insn and do

	if (GET_CODE (PATTERN (INSN)) == COND_EXEC)
          note_stores (COND_EXEC_CODE (PATTERN (INSN)), 
move2add_note_stores,
		       COND_EXEC_TEST (PATTERN (INSN)));
 	else
          note_stores (PATTERN (INSN), move2add_note_stores, NULL);

R.	  



More information about the Gcc-patches mailing list