commit | 3dfd4d93fa013e1c0578d3ceac5c8f4ebba4b6ec | [log] [tgz] |
---|---|---|
author | Matthias Braun <matze@braunis.de> | Mon Sep 12 09:17:38 2022 -0700 |
committer | Nikita Popov <npopov@redhat.com> | Wed Dec 07 08:39:47 2022 +0100 |
tree | 77aa5f0896edf1d577a03d7d4d379d6c8ef468e7 | |
parent | dc5fa02507192f078dcb11438bb6137ad152f564 [diff] |
ControlHeightReduction: Remove assert check in shouldApply Remove assertion checking for non-empty `ProfileSummaryInfo`. Differential Revision: https://reviews.llvm.org/D133706 (cherry picked from commit 6d972ad2d8f1cfe22a61d1c4aed6089f0586b377)
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp index adc007d..0d26621 100644 --- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp +++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
@@ -406,7 +406,6 @@ return CHRFunctions.count(F.getName()); } - assert(PSI.hasProfileSummary() && "Empty PSI?"); return PSI.isFunctionEntryHot(&F); }