We can use the template parameter IsPostDom to pick an appropriate SmallVector size to store DomTree roots for dominators and postdominators. Before, the code would always allocate memory with std::vector.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D35636
[Dominators] Change Roots type to SmallVector ClosedPublic Authored by kuhar on Jul 19 2017, 10:49 AM.
Details Summary We can use the template parameter IsPostDom to pick an appropriate SmallVector size to store DomTree roots for dominators and postdominators. Before, the code would always allocate memory with std::vector.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jul 19 2017, 10:51 AM kuhar added a child revision: D35851: [Dominators] Include infinite loops in PostDominatorTree.Jul 25 2017, 12:57 PM kuhar added a parent revision: D35597: [Dominators] Move root-finding out of DomTreeBase and simplify it.Jul 25 2017, 6:43 PM Closed by commit rL309148: [Dominators] Change Roots type to SmallVector (authored by kuhar). · Explain WhyJul 26 2017, 11:28 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 108332 include/llvm/Analysis/DominanceFrontier.h
include/llvm/CodeGen/MachineDominanceFrontier.h
include/llvm/CodeGen/MachineDominators.h
include/llvm/CodeGen/MachinePostDominators.h
include/llvm/Support/GenericDomTree.h
|