summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/value.h
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-26 18:42:37 -0300
committerGravatar ameerj2021-07-22 21:51:33 -0400
commit8f3043c3cf6f6baa1d235e6789533fbf567d1c2d (patch)
treee9c017011fe7578f3b243d01badc7c8faa21da1b /src/shader_recompiler/frontend/ir/value.h
parentglasm: Remove unintentional '\n' on Undef32 (diff)
downloadyuzu-8f3043c3cf6f6baa1d235e6789533fbf567d1c2d.tar.gz
yuzu-8f3043c3cf6f6baa1d235e6789533fbf567d1c2d.tar.xz
yuzu-8f3043c3cf6f6baa1d235e6789533fbf567d1c2d.zip
Revert "glasm: Skip phi moves on undefined instructions"
Causes regressions on Bowser's Fury.
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/ir/value.h13
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 090cc1739..0c6bf684d 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 {
395 return inst.GetOpcode() == Opcode::Phi; 395 return inst.GetOpcode() == Opcode::Phi;
396} 396}
397 397
398[[nodiscard]] inline bool IsUndef(const Inst& inst) {
399 switch (inst.GetOpcode()) {
400 case Opcode::UndefU1:
401 case Opcode::UndefU8:
402 case Opcode::UndefU16:
403 case Opcode::UndefU32:
404 case Opcode::UndefU64:
405 return true;
406 default:
407 return false;
408 }
409}
410
411} // namespace Shader::IR 398} // namespace Shader::IR