summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-04-12 02:02:06 +0000
committerFangrui Song <maskray@google.com>2019-04-12 02:02:06 +0000
commitcecc4352508928f7ceeeee92fcde2986a5c55535 (patch)
treefd00bcfc8259cefe24787b0c848cedd79ff9137f /llvm/lib/CodeGen/RegAllocGreedy.cpp
parent21375ca136025f2a6dc55418d43630455ca0e98b (diff)
downloadbcm5719-llvm-cecc4352508928f7ceeeee92fcde2986a5c55535.tar.gz
bcm5719-llvm-cecc4352508928f7ceeeee92fcde2986a5c55535.zip
Use llvm::lower_bound. NFC
This reapplies rL358161. That commit inadvertently reverted an exegesis file to an old version. llvm-svn: 358246
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocGreedy.cpp4
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].
OpenPOWER on IntegriCloud