diff options
author | Fangrui Song <maskray@google.com> | 2019-06-21 05:40:31 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-06-21 05:40:31 +0000 |
commit | dc8de6037c3aceb9663c7433bb09584fa8571032 (patch) | |
tree | acb49acaa3d1a0428951451a091fcb4d0c79a464 /llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp | |
parent | d5e1ce3f44b0bef1eadbef9828b87a8918a82669 (diff) | |
download | bcm5719-llvm-dc8de6037c3aceb9663c7433bb09584fa8571032.tar.gz bcm5719-llvm-dc8de6037c3aceb9663c7433bb09584fa8571032.zip |
Simplify std::lower_bound with llvm::{bsearch,lower_bound}. NFC
llvm-svn: 364006
Diffstat (limited to 'llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp index a27f7f157de..b32ba3eeea1 100644 --- a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp +++ b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp @@ -423,8 +423,7 @@ static const NEONLdStTableEntry *LookupNEONLdSt(unsigned Opcode) { } #endif - auto I = std::lower_bound(std::begin(NEONLdStTable), - std::end(NEONLdStTable), Opcode); + auto I = llvm::lower_bound(NEONLdStTable, Opcode); if (I != std::end(NEONLdStTable) && I->PseudoOpc == Opcode) return I; return nullptr; |