mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-25 08:43:05 +00:00
shader: Use a small_vector for phi blocks
This commit is contained in:
parent
79c2e43fcd
commit
24cc298660
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include <boost/container/small_vector.hpp>
|
||||||
#include <boost/intrusive/list.hpp>
|
#include <boost/intrusive/list.hpp>
|
||||||
|
|
||||||
#include "common/bit_cast.h"
|
#include "common/bit_cast.h"
|
||||||
|
@ -131,7 +132,7 @@ private:
|
||||||
u32 definition{};
|
u32 definition{};
|
||||||
union {
|
union {
|
||||||
NonTriviallyDummy dummy{};
|
NonTriviallyDummy dummy{};
|
||||||
std::vector<std::pair<Block*, Value>> phi_args;
|
boost::container::small_vector<std::pair<Block*, Value>, 2> phi_args;
|
||||||
std::array<Value, 5> args;
|
std::array<Value, 5> args;
|
||||||
};
|
};
|
||||||
std::unique_ptr<AssociatedInsts> associated_insts;
|
std::unique_ptr<AssociatedInsts> associated_insts;
|
||||||
|
|
Loading…
Reference in a new issue