K8 tweek
Jan Hubicka
jh@suse.cz
Fri May 23 20:29:00 GMT 2003
Hi,
I've installed the attached patch as obvious.
Honza
Fri May 23 22:16:45 CEST 2003 Jan Hubicka <jh@suse.cz>
* i386.c (ix86_reorg): Calls are also jumps.
Index: i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.564
diff -c -3 -p -r1.564 i386.c
*** i386.c 14 May 2003 07:29:46 -0000 1.564
--- i386.c 23 May 2003 20:16:35 -0000
*************** ix86_reorg ()
*** 15565,15572 ****
if (!insert)
{
prev = prev_active_insn (ret);
! if (prev && GET_CODE (prev) == JUMP_INSN
! && any_condjump_p (prev))
insert = 1;
/* Empty functions get branch misspredict even when the jump destination
is not visible to us. */
--- 15565,15573 ----
if (!insert)
{
prev = prev_active_insn (ret);
! if (prev
! && ((GET_CODE (prev) == JUMP_INSN && any_condjump_p (prev))
! || GET_CODE (prev) == CALL_INSN))
insert = 1;
/* Empty functions get branch misspredict even when the jump destination
is not visible to us. */
More information about the Gcc-patches
mailing list