davidxl added a comment. Why not adding another parameter to InlineFunction method to specify whether attribute Merge is done? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134117/new/ https://reviews.llvm.org/D134117