<div dir="auto">The compiler is doing what we asked. Why workaround it.</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Nov 1, 2026, 9:04 AM Sun Yuechi <<a href="mailto:sunyuechi@iscas.ac.cn">sunyuechi@iscas.ac.cn</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">At -O2 the ACL match checks are not inlined into the RVV search loops, so<br>
a vector value live across those calls is spilled and the remaining locals<br>
are addressed through vlenb. -O3 inlines them already and is unchanged.<br>
<br>
Add __rte_flatten, and apply it to the two search functions.<br>
<br>
Sun Yuechi (2):<br>
eal: add flatten function attribute<br>
acl: inline the match checks into the RVV search loops<br>
<br>
lib/acl/acl_run_rvv.h | 8 +++++---<br>
lib/eal/include/rte_common.h | 13 +++++++++++++<br>
2 files changed, 18 insertions(+), 3 deletions(-)<br>
<br>
-- <br>
2.56.0<br>
<br>
</blockquote></div>