aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2022-09-12 09:17:38 -0700
committerMatthias Braun <matze@braunis.de>2022-10-17 13:10:13 -0700
commit6d972ad2d8f1cfe22a61d1c4aed6089f0586b377 (patch)
tree63f9c98390fd645155131006bb0b39e73d29641b /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
parent4eda362539bc76e80e24728974b8856e8cfd1576 (diff)
downloadllvm-6d972ad2d8f1cfe22a61d1c4aed6089f0586b377.zip
llvm-6d972ad2d8f1cfe22a61d1c4aed6089f0586b377.tar.gz
llvm-6d972ad2d8f1cfe22a61d1c4aed6089f0586b377.tar.bz2
ControlHeightReduction: Remove assert check in shouldApply
Remove assertion checking for non-empty `ProfileSummaryInfo`. Differential Revision: https://reviews.llvm.org/D133706
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
index f20c168..8ecf2cf 100644
--- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
@@ -406,7 +406,6 @@ static bool shouldApply(Function &F, ProfileSummaryInfo& PSI) {
return CHRFunctions.count(F.getName());
}
- assert(PSI.hasProfileSummary() && "Empty PSI?");
return PSI.isFunctionEntryHot(&F);
}