[PATCH] D133706: ControlHeightReduction: Remove assert check in shouldApply

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 12 09:21:36 PDT 2022


MatzeB created this revision.
MatzeB added reviewers: yamauchi, wenlei, weiwang, wmi.
Herald added subscribers: Enna1, modimo, hiraditya, mcrosier.
Herald added a project: All.
MatzeB requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Remove assertion checking for non-empty ProfileSummaryInfos.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133706

Files:
  llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp


Index: llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
===================================================================
--- llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
+++ llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
@@ -406,7 +406,6 @@
     return CHRFunctions.count(F.getName());
   }
 
-  assert(PSI.hasProfileSummary() && "Empty PSI?");
   return PSI.isFunctionEntryHot(&F);
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133706.459486.patch
Type: text/x-patch
Size: 439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220912/fe254793/attachment.bin>


More information about the llvm-commits mailing list