[PATCH] D141487: [LoopUnroll] Directly update DT instead of DTU.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 16 05:43:05 PST 2023
fhahn marked an inline comment as done.
fhahn added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/BasicBlockUtils.cpp:243
+ for (DomTreeNode *C : to_vector(BBNode->children()))
+ C->setIDom(PredNode);
+ }
----------------
nikic wrote:
> Doesn't this need to check whether the old idom was BB? Couldn't it be higher up?
I might be missing something here, but `BBNode->children()` iterates over the nodes which have `BB` as idom.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141487/new/
https://reviews.llvm.org/D141487
More information about the llvm-commits
mailing list