[PATCH] D93838: [SCCP] Add Function Specialization pass

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 19 20:43:56 PDT 2021


davidxl added a comment.

If the function pointer points to a function too large to be inlined,  I expect the benefit of cloning the caller will also be minimal.

It is possible that the 'spec_sort' like function is very large so it won't be inlined no matter what. In such as case the cloning may be helpful.

What I am saying is that for the motivating example in MCF, it may be possible to fix the inliner.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93838/new/

https://reviews.llvm.org/D93838



More information about the llvm-commits mailing list