[llvm] Account for inline assembly instructions in inlining cost. (PR #146628)
Rahman Lavaee via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 7 12:47:52 PDT 2025
rlavaee wrote:
> Note GCC documents how their behavior is here: https://gcc.gnu.org/onlinedocs/gcc-15.1.0/gcc/Size-of-an-asm.html
>
> GCC (since GCC 9) also supports inline qualifier on the inline asm to change the size to be considered one instruction for the case of inlining heurstics.
>
> I suspect you should add support for that. And also document this in the clang (and other LLVM) manual.
Thank you. This should be a helpful feature as a follow up. I assume I need to do some plumbing to propagate this effect through the "asm inline" keyword.
https://github.com/llvm/llvm-project/pull/146628
More information about the llvm-commits
mailing list