aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-05-17 14:29:35 -0700
committerGitHub <noreply@github.com>2025-05-17 14:29:35 -0700
commitd1cd68881ad41bbaa81c49e54d5f1cb2b0fec093 (patch)
tree6741a6ae7884d3fd787cc4aaea2778b6159dee93 /llvm/lib/CodeGen/MachineScheduler.cpp
parentc51417d75b0090e33299475a3ddec648768bd746 (diff)
downloadllvm-d1cd68881ad41bbaa81c49e54d5f1cb2b0fec093.zip
llvm-d1cd68881ad41bbaa81c49e54d5f1cb2b0fec093.tar.gz
llvm-d1cd68881ad41bbaa81c49e54d5f1cb2b0fec093.tar.bz2
[llvm] Use llvm::is_sorted (NFC) (#140399)
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 236c55c..0985f47 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -4917,8 +4917,7 @@ unsigned ResourceSegments::getFirstAvailableAt(
unsigned CurrCycle, unsigned AcquireAtCycle, unsigned ReleaseAtCycle,
std::function<ResourceSegments::IntervalTy(unsigned, unsigned, unsigned)>
IntervalBuilder) const {
- assert(std::is_sorted(std::begin(_Intervals), std::end(_Intervals),
- sortIntervals) &&
+ assert(llvm::is_sorted(_Intervals, sortIntervals) &&
"Cannot execute on an un-sorted set of intervals.");
// Zero resource usage is allowed by TargetSchedule.td but we do not construct