[FFmpeg-devel] [PATCH 1/2] aarch64: Use ret x<n> instead of br x<n> where possible

Martin Storsjö martin at martin.st
Tue Nov 16 11:27:47 EET 2021


On Fri, 12 Nov 2021, Jonathan Wright wrote:

> Hi,
>
> This patch changes all AArch64 assembly code to use:
>  ret     x<n>
> instead of:
>  br      x<n>
>
> "ret x<n>" is already used in a lot of places so this patch makes it
> consistent across the code base. This does not change behavior or
> performance.
>
> In addition, this change reduces the number of landing pads needed in
> a subsequent patch to support the Armv8.5-A Branch Target
> Identification (BTI) security feature.
>
> Regression tested and no issues. Could someone take a look and
> merge?

This looks good to me, I can push it after running it through some build 
configs.

// Martin



More information about the ffmpeg-devel mailing list