HomePhabricator

[ADT] Enhance the PriorityWorklist to support bulk insertion.

Description

[ADT] Enhance the PriorityWorklist to support bulk insertion.

This is both convenient and more efficient as we can skip any
intermediate reallocation of the vector.

This usage pattern came up in a subsequent patch on the pass manager,
but it seems generically useful so I factored it out and added unittests
here.

Details

Committed
chandlercJan 4 2017, 3:13 AM
Parents
rL290951: [ELF] Add support for thunks to undefined non-weak symbols
Branches
Unknown
Tags
Unknown