diff options
author | Kazu Hirata <kazu@google.com> | 2021-01-04 11:42:47 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-01-04 11:42:47 -0800 |
commit | eb198f4c3cedae4e9778f11e76e0fa1f1b61b622 (patch) | |
tree | 27a888e662e860a341071bf6ad2791bd1dbc6d80 /llvm/lib/CodeGen/MachineSink.cpp | |
parent | 0edbc90ec565758f5243b83b1c0a13beaf21214f (diff) | |
download | llvm-eb198f4c3cedae4e9778f11e76e0fa1f1b61b622.zip llvm-eb198f4c3cedae4e9778f11e76e0fa1f1b61b622.tar.gz llvm-eb198f4c3cedae4e9778f11e76e0fa1f1b61b622.tar.bz2 |
[llvm] Use llvm::any_of (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineSink.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp index 48ed8b0..42ab961 100644 --- a/llvm/lib/CodeGen/MachineSink.cpp +++ b/llvm/lib/CodeGen/MachineSink.cpp @@ -1024,9 +1024,9 @@ bool MachineSinking::hasStoreBetween(MachineBasicBlock *From, return HasStoreCache[BlockPair]; if (StoreInstrCache.find(BlockPair) != StoreInstrCache.end()) - return std::any_of( - StoreInstrCache[BlockPair].begin(), StoreInstrCache[BlockPair].end(), - [&](MachineInstr *I) { return I->mayAlias(AA, MI, false); }); + return llvm::any_of(StoreInstrCache[BlockPair], [&](MachineInstr *I) { + return I->mayAlias(AA, MI, false); + }); bool SawStore = false; bool HasAliasedStore = false; |