Amir Ayupov
f119a2483d
[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
2022-08-27 21:36:15 -07:00
..
2022-07-13 14:47:22 +03:00
2022-08-24 16:32:33 -07:00
2022-05-13 13:27:21 -07:00
2022-08-25 17:03:11 -07:00
2021-12-23 12:38:33 -08:00
2022-06-23 22:16:27 -07:00
2022-08-27 21:36:15 -07:00