This has been proposed in the past, but I never got to implement it until today.
Diff Detail
Diff Detail
Event Timeline
lib/Transforms/Utils/LibCallsShrinkWrap.cpp | ||
---|---|---|
511 | SplitBlockAndInsertIfThen has an optional DominatorTree argument. |
Comment Actions
Could you preserve the DT without requiring it? Not that it matters much for performance, but it would more clear why this pass is requesting the domtree.
Comment Actions
I'm not very familiar with the old pass manager infrastructure (I got involved only in new pass manager'y stuffs) and I don't want to cause troubles.
To double check, I just need to remove the addRequired() call/INITIALIZE_DEPENDENCY from the pass right? If so, I'll do another round of testing then commit.
SplitBlockAndInsertIfThen has an optional DominatorTree argument.