diff options
author | Fangrui Song <maskray@google.com> | 2019-04-12 11:31:16 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-12 11:31:16 +0000 |
commit | fb79ff6ab5b79238cc41bd622c139916762631be (patch) | |
tree | 2d05300d262eb2569ca3c5ccc9bf4f72670eff30 /llvm/lib/CodeGen/RegisterCoalescer.cpp | |
parent | eb312ddfdf81f53d727d1c456514bd45d8293f0e (diff) | |
download | bcm5719-llvm-fb79ff6ab5b79238cc41bd622c139916762631be.tar.gz bcm5719-llvm-fb79ff6ab5b79238cc41bd622c139916762631be.zip |
Use llvm::upper_bound. NFC
llvm-svn: 358277
Diffstat (limited to 'llvm/lib/CodeGen/RegisterCoalescer.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegisterCoalescer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |