You are describing “function inlining” which is an optimization done by LLVM. This optimization is performed on the intermediate representation (IR), not at the source level, if that’s what you need to know.
You are describing “function inlining” which is an optimization done by LLVM. This optimization is performed on the intermediate representation (IR), not at the source level, if that’s what you need to know.
I think Yonggang might be looking for a refactoring/source modification, rather than an optimization, but I’m not sure.