The compiler is doing what we asked. Why workaround it.

On Sun, Nov 1, 2026, 9:04 AM Sun Yuechi <[email protected]> wrote:

> At -O2 the ACL match checks are not inlined into the RVV search loops, so
> a vector value live across those calls is spilled and the remaining locals
> are addressed through vlenb.  -O3 inlines them already and is unchanged.
>
> Add __rte_flatten, and apply it to the two search functions.
>
> Sun Yuechi (2):
>   eal: add flatten function attribute
>   acl: inline the match checks into the RVV search loops
>
>  lib/acl/acl_run_rvv.h        |  8 +++++---
>  lib/eal/include/rte_common.h | 13 +++++++++++++
>  2 files changed, 18 insertions(+), 3 deletions(-)
>
> --
> 2.56.0
>
>

Reply via email to