[PATCH] D45299: API to update MemorySSA for cloned blocks.
Jakub Kuderski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 20 13:54:54 PDT 2018
kuhar added inline comments.
================
Comment at: lib/Analysis/MemorySSAUpdater.cpp:662
+ // Get nearest IDom given a set of blocks.
+ auto FindNearestCommonDominator =
+ [&](SmallPtrSetImpl<BasicBlock *> &BBSet) -> BasicBlock * {
----------------
I don't think this will be a bottleneck, but this can be optimized by starting the search at the node with the lowest level (highest in the tree).
Repository:
rL LLVM
https://reviews.llvm.org/D45299
More information about the llvm-commits
mailing list