diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-26 18:42:37 -0300 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:33 -0400 |
commit | 8f3043c3cf6f6baa1d235e6789533fbf567d1c2d (patch) | |
tree | e9c017011fe7578f3b243d01badc7c8faa21da1b /src/shader_recompiler/frontend/ir/value.h | |
parent | 2aa30353b7990789a613fe22525e0a3a19a78656 (diff) |
Revert "glasm: Skip phi moves on undefined instructions"
Causes regressions on Bowser's Fury.
Diffstat (limited to 'src/shader_recompiler/frontend/ir/value.h')
-rw-r--r-- | src/shader_recompiler/frontend/ir/value.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h index 090cc17395..0c6bf684d0 100644 --- a/src/shader_recompiler/frontend/ir/value.h +++ b/src/shader_recompiler/frontend/ir/value.h @@ -395,17 +395,4 @@ inline f64 Value::F64() const { return inst.GetOpcode() == Opcode::Phi; } -[[nodiscard]] inline bool IsUndef(const Inst& inst) { - switch (inst.GetOpcode()) { - case Opcode::UndefU1: - case Opcode::UndefU8: - case Opcode::UndefU16: - case Opcode::UndefU32: - case Opcode::UndefU64: - return true; - default: - return false; - } -} - } // namespace Shader::IR |