Skip to content

Commit 3dfd4d9

Browse files
MatzeBnikic
authored andcommitted
ControlHeightReduction: Remove assert check in shouldApply
Remove assertion checking for non-empty `ProfileSummaryInfo`. Differential Revision: https://reviews.llvm.org/D133706 (cherry picked from commit 6d972ad)
1 parent dc5fa02 commit 3dfd4d9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ static bool shouldApply(Function &F, ProfileSummaryInfo& PSI) {
406406
return CHRFunctions.count(F.getName());
407407
}
408408

409-
assert(PSI.hasProfileSummary() && "Empty PSI?");
410409
return PSI.isFunctionEntryHot(&F);
411410
}
412411

0 commit comments

Comments
 (0)