This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
cfg-brach/mainline avoid leaking of NOTE_EXPECTED_VALUE
- To: gcc-patches at gcc dot gnu dot org, gcc-pdo at atrey dot karlin dot mff dot cuni dot cz, patches at x86-64 dot org, rth at cygnus dot com
- Subject: cfg-brach/mainline avoid leaking of NOTE_EXPECTED_VALUE
- From: Jan Hubicka <jh at suse dot cz>
- Date: Tue, 13 Nov 2001 12:32:43 +0100
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;