[llvm] [CodeGen] Use SmallVector for MBB preds/succs (PR #101948)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 03:10:15 PDT 2024
================
@@ -814,7 +814,7 @@ RegionInfoBase<Tr>::getMaxRegionExit(BlockT *BB) const {
// Get the single exit of BB.
if (R && R->getEntry() == BB)
Exit = R->getExit();
- else if (++BlockTraits::child_begin(BB) == BlockTraits::child_end(BB))
+ else if (BlockTraits::child_begin(BB) + 1 == BlockTraits::child_end(BB))
----------------
nikic wrote:
Use std::next() to make this independent of implementation details?
https://github.com/llvm/llvm-project/pull/101948
More information about the llvm-commits
mailing list