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]
Other format: [Raw text]

cfg-brach/mainline avoid leaking of NOTE_EXPECTED_VALUE


Hi,
the note expected value is kept on place once transformed that makes my
BB duplication code to crash, as it dislikes notes it don't know.

Honza

Tue Nov 13 12:28:49 CET 2001  Jan Hubicka  <jh@suse.cz>

	* predict.c (expected_value_to_br_prob): Delete the note
	once transformed.
Index: predict.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/predict.c,v
retrieving revision 1.44
diff -c -3 -p -r1.44 predict.c
*** predict.c	2001/11/11 11:25:27	1.44
--- predict.c	2001/11/13 11:28:27
*************** expected_value_to_br_prob ()
*** 540,545 ****
--- 540,546 ----
  	    {
  	      ev = NOTE_EXPECTED_VALUE (insn);
  	      ev_reg = XEXP (ev, 0);
+ 	      delete_insn (insn);
  	    }
  	  continue;
  


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