[PATCH] D17473: [LoopUnroll] Avoid unnecessary DT recomputation.
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 22 16:33:25 PST 2016
joker.eph added inline comments.
================
Comment at: lib/Transforms/Utils/LoopUnroll.cpp:115-117
@@ +114,5 @@
+ SmallVector<DomTreeNode *, 8> Children(DTN->begin(), DTN->end());
+ for (SmallVectorImpl<DomTreeNode *>::iterator DI = Children.begin(),
+ DE = Children.end();
+ DI != DE; ++DI)
+ DT->changeImmediateDominator(*DI, PredDTN);
----------------
The above comment on range based for-loop still applies I think?
http://reviews.llvm.org/D17473
More information about the llvm-commits
mailing list