The type was pretty much generic, just needed a bit of parameterization.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/Analysis/ReleaseModeModelRunner.h | ||
---|---|---|
30 | what's the concern for just use std::vector? |
llvm/include/llvm/Analysis/ReleaseModeModelRunner.h | ||
---|---|---|
30 | Feature lists are compile-time known. We use std::array for example for the list of the inliner, it's overall cheaper. we can't though use it as a parameter here because we don't know the count (plus it's not fixed, it's per instantiation of this template) we could do `template <std::size_t N> but I prefer the current choice, it's more flexible and doesn't make any significant tradeoffs. |
what's the concern for just use std::vector?