commit | 4b85255772114ca4946d95fe591933dae7d61991 | [log] [tgz] |
---|---|---|
author | Matthias Braun <matze@braunis.de> | Mon Sep 12 09:17:38 2022 -0700 |
committer | Nikita Popov <npopov@redhat.com> | Tue Oct 18 14:04:00 2022 +0200 |
tree | 21ab1926e8288872e57503f2d41218cadcb48e5a | |
parent | 9567f08afc94332d59025744f3a8198104949d3c [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); }