[PATCH] D87337: [PGO] De-Optimizing cold functions based on PGO info (PATCH 1/2)
    Roman Lebedev via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Sep  8 23:23:59 PDT 2020
    
    
  
lebedev.ri added a comment.
As per https://llvm.org/docs/LangRef.html, `deopt` term appears to be already coined.
================
Comment at: llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp:1777
+  if (DeoptColdFunctions) {
+    std::sort(FuncCounts.begin(), FuncCounts.end(),
+              [](const FuncCountEntry &LHS, const FuncCountEntry &RHS) {
----------------
`llvm::sort`
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87337/new/
https://reviews.llvm.org/D87337
    
    
More information about the llvm-commits
mailing list