[PATCH,AArch64] Use CSINC instead of CSEL to return 1

Marcus Shawcroft marcus.shawcroft@arm.com
Mon Nov 12 09:06:00 GMT 2012


On 06/11/12 18:56, Ian Bolton wrote:
> Where a CSEL can return the value 1 as one of the alternatives,
> it is usually more efficient to use a CSINC than a CSEL (and
> never less efficient), since the value of 1 can be derived from
> wzr, rather than needing to set it up in a register first.
>
> This patch enables this capability.
>
> It has been regression tested on trunk.
>
> OK for commit?
>
> Cheers,
> Ian

OK, and please backport to ARM/aarch64-4.7-branch

Thanks
/Marcus



More information about the Gcc-patches mailing list