[llvm] [GenericDomTree][NFC] Use llvm algorithms (PR #97104)
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 1 15:42:31 PDT 2024
================
@@ -885,6 +874,12 @@ class DominatorTreeBase {
NewBBIDom = findNearestCommonDominator(NewBBIDom, PredBlocks[i]);
}
+ bool NewBBDominatesNewBBSucc =
+ llvm::none_of(inverse_children<N>(NewBBSucc), [=](const auto *Pred) {
----------------
dwblaikie wrote:
For locally used lambdas, I'd usually suggest `[&]` (applying to here and elsewhere in thepatch) to reduce the risk of referencing something expensive and copying by accident?
https://github.com/llvm/llvm-project/pull/97104
More information about the llvm-commits
mailing list