From fb79ff6ab5b79238cc41bd622c139916762631be Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 12 Apr 2019 11:31:16 +0000 Subject: Use llvm::upper_bound. NFC llvm-svn: 358277 --- llvm/lib/CodeGen/RegisterCoalescer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/RegisterCoalescer.cpp') diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index 40b7e8ba788..ca53fe4f393 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp @@ -693,8 +693,7 @@ bool RegisterCoalescer::hasOtherReachingDefs(LiveInterval &IntA, for (LiveRange::Segment &ASeg : IntA.segments) { if (ASeg.valno != AValNo) continue; - LiveInterval::iterator BI = - std::upper_bound(IntB.begin(), IntB.end(), ASeg.start); + LiveInterval::iterator BI = llvm::upper_bound(IntB, ASeg.start); if (BI != IntB.begin()) --BI; for (; BI != IntB.end() && ASeg.end >= BI->start; ++BI) { -- cgit v1.2.3