[PATCH] D110292: Use a deterministic order when updating the DominatorTree
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 27 08:38:26 PDT 2021
foad added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/BasicBlockUtils.cpp:234
SmallPtrSet<BasicBlock *, 2> SuccsOfPredBB(succ_begin(PredBB),
- succ_begin(PredBB));
- Updates.reserve(Updates.size() + 2 * SuccsOfBB.size() + 1);
+ succ_end(PredBB));
+ Updates.reserve(Updates.size() + 2 * succ_size(BB) + 1);
----------------
This line looks like a bug fix -- or does it just avoid doing some unnecesssary updates?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110292/new/
https://reviews.llvm.org/D110292
More information about the llvm-commits
mailing list