[PATCH] D147132: [FuncSpec] Replace markArgInFuncSpecialization with handleCallArguments.

Alexandros Lamprineas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 9 04:02:02 PDT 2023


labrinea added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SCCPSolver.cpp:836
 
-void SCCPInstVisitor::markArgInFuncSpecialization(
-    Function *F, const SmallVectorImpl<ArgInfo> &Args) {
----------------
chill wrote:
> I understand that with this change we will propagate literal constant arguments into the specialized functions. But, going forward, we intend to enable `funcspec-for-literal-constant` by default and then this functions here has the potential to be more efficient.
> 
> Thus I would suggest not deleting it for now.
> 
markArgInFuncSpecialization() does not handle struct arguments as is. I fixed that in D145374, but on the review we agreed replacing it with handleCallArguments() is cleaner. Perhaps I could rework that patch and drop this one then.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147132



More information about the llvm-commits mailing list