[IR] AlwaysInliner time explosion with pass enablement in llvm ir pipeline

With AMDGPU, composable kernels usecase, we have ~40,000 functions in module, with all the functions marked with “always_inline” attribute.
With enablement of alwaysinliner legacy pass in cae033d in the pipeline, build hangs at this pass because of heavy memory usage (64gb ram entirely used up, in the machine I tested). On debug, found that splice api (LINK) on the basicblocks causes memory usage and when pass is run with 1000’s of functions with always_inline attr, it causes build hang.
Any help/info on how to fix this?