Do compilers take inline as a hint?
blog.tartanllama.xyz
blog.tartanllama.xyz
This article has also reminded me of just how painful the main GCC codebase is. If you have a choice: Use LLVM for your compiler-hacking.
However, this bears the risk of being non the wiser in case your chosen program doesn't produce any differences in the compiled output: you wouldn't know whether it's because the compiler doesn't respect inline or whether the particular program you tried was for some reason not a good choice.
The best way to find out if your function was inlined is to build it as if for release and then disassemble and read it.
Forced inline, on the other hand, is telling the compiler to copy and paste the function body. This will not always improve performance because code has interactions with the processor and memory/cache which make things more complicated.
Did you read the article?