aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-29 23:23:35 -0800
committerKazu Hirata <kazu@google.com>2021-01-29 23:23:36 -0800
commit1a2d67fa23b2b65c7f07481dd0184957f8d058d9 (patch)
tree549b040e73eaed1d213ef90460d2aa06a030ea46 /llvm/lib/CodeGen/LiveInterval.cpp
parent7728cc003a87b274ebd611070fe38f0e41fef2aa (diff)
downloadllvm-1a2d67fa23b2b65c7f07481dd0184957f8d058d9.zip
llvm-1a2d67fa23b2b65c7f07481dd0184957f8d058d9.tar.gz
llvm-1a2d67fa23b2b65c7f07481dd0184957f8d058d9.tar.bz2
[llvm] Use llvm::lower_bound and llvm::upper_bound (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index ce0e587..4114fbd 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/lib/CodeGen/LiveInterval.cpp
@@ -487,7 +487,7 @@ bool LiveRange::overlaps(const LiveRange &Other, const CoalescerPair &CP,
/// by [Start, End).
bool LiveRange::overlaps(SlotIndex Start, SlotIndex End) const {
assert(Start < End && "Invalid range");
- const_iterator I = std::lower_bound(begin(), end(), End);
+ const_iterator I = lower_bound(*this, End);
return I != begin() && (--I)->end > Start;
}