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]

Re: Fix PR optimization/11753 (SPARC)


Eric Botcazou <ebotcazou@libertysurf.fr> writes:

> Hi,
>
> This PR was reported against GCC 3.2.2, which emits in the middle of the 
> assembly file generated for a big proprietary testcase:
>
> 	mov	1, %i0
> 	call	free, 0
> 	add	%o7, (.LL1-.-4), %o7
>
> This clever trick is intended to perfom a 'call' followed by a
>'jump' to .LL1 and is devised by an old-fashioned peephole:
[...]

Is this optimization even a good idea on modern Sparc hardware?  It
seems like the sort of thing that would confuse a branch predictor.

zw


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