summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-06-30 11:19:56 +0000
committerFangrui Song <maskray@google.com>2019-06-30 11:19:56 +0000
commit78ee2fbf984b84db814bf7b3a68e2317e32b1a24 (patch)
tree83fad2d809aa8d625b95a949b0d36ef9ceeaa2e4 /llvm/lib/Analysis
parent2d2cb77e45d4c9ca34d05f80430e0f9404252980 (diff)
downloadbcm5719-llvm-78ee2fbf984b84db814bf7b3a68e2317e32b1a24.tar.gz
bcm5719-llvm-78ee2fbf984b84db814bf7b3a68e2317e32b1a24.zip
Cleanup: llvm::bsearch -> llvm::partition_point after r364719
llvm-svn: 364720
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/ProfileSummaryInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ProfileSummaryInfo.cpp b/llvm/lib/Analysis/ProfileSummaryInfo.cpp
index 52e015b5bb3..dce19d6d546 100644
--- a/llvm/lib/Analysis/ProfileSummaryInfo.cpp
+++ b/llvm/lib/Analysis/ProfileSummaryInfo.cpp
@@ -60,8 +60,8 @@ static cl::opt<int> ProfileSummaryColdCount(
// Find the summary entry for a desired percentile of counts.
static const ProfileSummaryEntry &getEntryForPercentile(SummaryEntryVector &DS,
uint64_t Percentile) {
- auto It = llvm::bsearch(DS, [=](const ProfileSummaryEntry &Entry) {
- return Percentile <= Entry.Cutoff;
+ auto It = partition_point(DS, [=](const ProfileSummaryEntry &Entry) {
+ return Entry.Cutoff < Percentile;
});
// The required percentile has to be <= one of the percentiles in the
// detailed summary.
OpenPOWER on IntegriCloud