[PATCH] D35142: WIP! [CFG] Create a new removeUnreachable utility that updates the dom in place
Jakub Kuderski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 9 17:05:44 PDT 2017
kuhar added inline comments.
================
Comment at: lib/Transforms/Utils/Local.cpp:1716
+
+ SmallVector<BasicBlock *, 8> Worklist;
+ for (BasicBlock &BB : F) {
----------------
Isn't the size known to be `F.size() - Live.size()` at this point? Worklist could start with this capacity.
https://reviews.llvm.org/D35142
More information about the llvm-commits
mailing list