[PATCH] D153638: [CodeGenPrepare][NFC] Update the dominator tree instead of rebuilding it
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 23 12:55:49 PDT 2023
efriedma added a comment.
Have you tried to measure compile-time impact?
================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:6999
StartBlock->getTerminator()->eraseFromParent();
+ DTU.applyUpdates({{DominatorTree::Delete, StartBlock, EndBlock}});
----------------
This might work, but it's going to be expensive; deleting the edge before adding the other edges will force the whole tree to be reconstructed, I think.
Can we use the SplitBlockAndInsertIfThen/SplitBlockAndInsertIfThenElse utilities here?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153638/new/
https://reviews.llvm.org/D153638
More information about the llvm-commits
mailing list