[llvm] Account for inline assembly instructions in inlining cost. (PR #146628)

Andrew Pinski via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 21:01:24 PDT 2025


pinskia 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.

https://github.com/llvm/llvm-project/pull/146628


More information about the llvm-commits mailing list