diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-04-21 03:21:16 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:28 +0200 |
commit | 24cc29866036350e538100a64ea8bcd1bfba1468 (patch) | |
tree | 9470aeb7c4dcaf3ef227726a9511066d6b1d5fd2 /src/shader_recompiler | |
parent | shader: Calculate number of arguments in an opcode at compile time (diff) | |
download | yuzu-24cc29866036350e538100a64ea8bcd1bfba1468.tar yuzu-24cc29866036350e538100a64ea8bcd1bfba1468.tar.gz yuzu-24cc29866036350e538100a64ea8bcd1bfba1468.tar.bz2 yuzu-24cc29866036350e538100a64ea8bcd1bfba1468.tar.lz yuzu-24cc29866036350e538100a64ea8bcd1bfba1468.tar.xz yuzu-24cc29866036350e538100a64ea8bcd1bfba1468.tar.zst yuzu-24cc29866036350e538100a64ea8bcd1bfba1468.zip |
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r-- | src/shader_recompiler/frontend/ir/microinstruction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/ir/microinstruction.h b/src/shader_recompiler/frontend/ir/microinstruction.h index 97dc91d85..dc9f683fe 100644 --- a/src/shader_recompiler/frontend/ir/microinstruction.h +++ b/src/shader_recompiler/frontend/ir/microinstruction.h @@ -10,6 +10,7 @@ #include <utility> #include <vector> +#include <boost/container/small_vector.hpp> #include <boost/intrusive/list.hpp> #include "common/bit_cast.h" @@ -131,7 +132,7 @@ private: u32 definition{}; union { 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::unique_ptr<AssociatedInsts> associated_insts; |