Page MenuHomePhabricator

[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

Repository
rL LLVM

Event Timeline

kuhar created this revision.Jul 19 2017, 10:49 AM
This revision is now accepted and ready to land.Jul 19 2017, 10:51 AM
kuhar updated this revision to Diff 108332.Jul 26 2017, 11:19 AM

Update the diff to apply cleanly.

This revision was automatically updated to reflect the committed changes.