diff options
author | Fangrui Song <maskray@google.com> | 2019-04-11 10:25:41 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-11 10:25:41 +0000 |
commit | 71cce580b91c8333880addb2df9eca09d97d8bc8 (patch) | |
tree | 0299ad2f098e71c3728a521cf7ff6e5d31a34a81 /llvm/lib/CodeGen/RegAllocGreedy.cpp | |
parent | 2050dff996a27b9fdb9b7365fe8659383de0824d (diff) | |
download | bcm5719-llvm-71cce580b91c8333880addb2df9eca09d97d8bc8.tar.gz bcm5719-llvm-71cce580b91c8333880addb2df9eca09d97d8bc8.zip |
Use llvm::lower_bound. NFC
llvm-svn: 358161
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocGreedy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index 761d09edef4..defc30b2c8c 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -2262,8 +2262,8 @@ unsigned RAGreedy::tryLocalSplit(LiveInterval &VirtReg, AllocationOrder &Order, ArrayRef<SlotIndex> RMS = LIS->getRegMaskSlotsInBlock(BI.MBB->getNumber()); LLVM_DEBUG(dbgs() << RMS.size() << " regmasks in block:"); // Constrain to VirtReg's live range. - unsigned ri = std::lower_bound(RMS.begin(), RMS.end(), - Uses.front().getRegSlot()) - RMS.begin(); + unsigned ri = + llvm::lower_bound(RMS, Uses.front().getRegSlot()) - RMS.begin(); unsigned re = RMS.size(); for (unsigned i = 0; i != NumGaps && ri != re; ++i) { // Look for Uses[i] <= RMS <= Uses[i+1]. |