[llvm] [GenericDomTree][NFC] Use llvm algorithms (PR #97104)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 08:05:19 PDT 2024


================
@@ -885,6 +874,12 @@ class DominatorTreeBase {
         NewBBIDom = findNearestCommonDominator(NewBBIDom, PredBlocks[i]);
     }
 
+    bool NewBBDominatesNewBBSucc =
----------------
dwblaikie wrote:

is there a reason this code moved from 20 lines above to down here? Might be worth doing in a separate commit if that's intentional, because it's less obviously NFC than the simple transformation to use `llvm::none_of`?

https://github.com/llvm/llvm-project/pull/97104


More information about the llvm-commits mailing list