OSDN Git Service

UseListOrder: Use std::vector
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 6 Aug 2014 17:36:08 +0000 (17:36 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 6 Aug 2014 17:36:08 +0000 (17:36 +0000)
commit2669f9b34e69ff2c603e32ccd440740c247431c2
tree5c107d45f5d16fc0ee83edaab481658e27d6133e
parentaf4e76402fc02f0d9bd909d2ea69b6efff48414a
UseListOrder: Use std::vector

I initially used a `SmallVector<>` for `UseListOrder::Shuffle`, which
was a silly choice.  When I realized my error I quickly rolled a custom
data structure.

This commit simplifies it to a `std::vector<>`.  Now that I've had a
chance to measure performance, this data structure isn't part of a
bottleneck, so the additional complexity is unnecessary.

This is part of PR5680.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214979 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/UseListOrder.h