tianqingw wrote: Regarding debug info, with current implementation, I doubt we can map the debug info after PartialInline to the original function: https://github.com/llvm/llvm-project/issues/100327 https://github.com/llvm/llvm-project/pull/99839