diff options
author | Matthias Braun <matze@braunis.de> | 2022-09-12 09:17:38 -0700 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2022-10-17 13:10:13 -0700 |
commit | 6d972ad2d8f1cfe22a61d1c4aed6089f0586b377 (patch) | |
tree | 63f9c98390fd645155131006bb0b39e73d29641b /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | |
parent | 4eda362539bc76e80e24728974b8856e8cfd1576 (diff) | |
download | llvm-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.cpp | 1 |
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); } |