aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-08-14 16:25:39 -0700
committerKazu Hirata <kazu@google.com>2022-08-14 16:25:39 -0700
commitf5a68feab30a529280c2912dc464e3a81e276f9a (patch)
treeb7034834c6810d25c92977743075dbec3a2e8cb7 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent55f0a87ea46ee787dbef425200a718db775ef381 (diff)
downloadllvm-f5a68feab30a529280c2912dc464e3a81e276f9a.zip
llvm-f5a68feab30a529280c2912dc464e3a81e276f9a.tar.gz
llvm-f5a68feab30a529280c2912dc464e3a81e276f9a.tar.bz2
Use llvm::none_of (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 0d89991..92fe929 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -7754,14 +7754,14 @@ static bool tryUnmergingGEPsAcrossIndirectBr(GetElementPtrInst *GEPI,
return false;
// Check that GEP is used outside the block, meaning it's alive on the
// IndirectBr edge(s).
- if (find_if(GEPI->users(), [&](User *Usr) {
+ if (llvm::none_of(GEPI->users(), [&](User *Usr) {
if (auto *I = dyn_cast<Instruction>(Usr)) {
if (I->getParent() != SrcBlock) {
return true;
}
}
return false;
- }) == GEPI->users().end())
+ }))
return false;
// The second elements of the GEP chains to be unmerged.
std::vector<GetElementPtrInst *> UGEPIs;