aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2022-08-19 15:57:24 -0700
committerAmir Ayupov <aaupov@fb.com>2022-08-27 21:36:15 -0700
commitf119a2483d4fd72fe88bfc367822bcd045117e1e (patch)
tree7d16870deb55a494788bd26f348654dace2070c2 /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parent472e1a065d6f673290bdf393b412be5e4fa565c0 (diff)
downloadllvm-f119a2483d4fd72fe88bfc367822bcd045117e1e.zip
llvm-f119a2483d4fd72fe88bfc367822bcd045117e1e.tar.gz
llvm-f119a2483d4fd72fe88bfc367822bcd045117e1e.tar.bz2
[BOLT][NFC] Use llvm::any_of
Replace the imperative pattern of the following kind ``` bool IsTrue = false; for (Element : Range) { if (Condition(Element)) { IsTrue = true; break; } } ``` with functional style `llvm::any_of`: ``` bool IsTrue = llvm::any_of(Range, [&](Element) { return Condition(Element); }); ``` Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D132276
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions