[PATCH, i386]: Use indirect functions some more

Richard Henderson rth@redhat.com
Fri Mar 18 21:08:00 GMT 2011


On 03/18/2011 01:40 PM, Uros Bizjak wrote:
>        if (<X87MODEF:MODE>mode == SFmode)
> -	insn = gen_truncxfsf2 (operands[0], reg);
> +	insn = gen_truncxfsf2;
>        else if (<X87MODEF:MODE>mode == DFmode)
> -	insn = gen_truncxfdf2 (operands[0], reg);
> +	insn = gen_truncxfdf2;
>        else
>  	gcc_unreachable ();

Why is this a good thing?  Surely the direct calls are much
better predicted by the CPU...

I can certainly understand sinking the call to emit_insn, as
in the second hunk; that ought to save code size.  Though the
compiler really ought to be able to figure that out itself.


r~



More information about the Gcc-patches mailing list