[PATCH] D157123: [FuncSpec] Rework the discardment logic for unprofitable specializations.
    Alexandros Lamprineas via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Aug  9 00:37:18 PDT 2023
    
    
  
labrinea added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/FunctionSpecialization.cpp:833
       Bonus B;
+      unsigned Score = 0;
       InstCostVisitor Visitor = getInstCostVisitorFor(F);
----------------
labrinea wrote:
> ChuanqiXu wrote:
> > May this be a better name?
> Ok
Sorry I misunderstood. I am naming it score because at the end it contains InliningBonus + std::max(B.CodeSize, B.Latency).
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157123/new/
https://reviews.llvm.org/D157123
    
    
More information about the llvm-commits
mailing list