Two brief comments, since I'm on holiday until 31st but happened to notice this patch anyway.
On Mon, Mar 24, 2025 at 02:19:21AM +0800, Yangyu Chen wrote: > This behavior does not ensure that if any higher priority callee version > were selected at runtime, then a higher priority caller version would have > been eligible for selection. But this is hard to solve due to comparing > the priority of different versions of the caller may not be meaningful. I've discussed this problem with Alfie (added to CC), who is currently working on FMV improvements for AArch64 and hoping to clean up the backend/middle end interface as well. I think we agreed that it would be good to add a target hook to compare versions, at which point the hard problem can more easily be solved for all targets. I don't know what progress Alfie has made towards this so far, but I think we're aiming to get these improvements into GCC 16. On which note: I presume this patch is proposed for GCC 16 Stage 1?