Nice summary.
I would just add for the sake of this discussion, that there is a private annotation @_assemblyVision
, that informs you about such things. (See PSA: Compiler optimisation remarks .) I wasn't able to get it working in my Xcode project, but it works well with SPM (and VSCode plugin).