mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-24 12:56:53 +02:00
shader: recognize unconditional predicates in implication proofs
This commit is contained in:
@@ -1187,7 +1187,7 @@ private:
|
||||
bool Implies(Value guard, Value required) const {
|
||||
guard = SimplifyGuard(guard);
|
||||
required = required.Resolve();
|
||||
if (EquivalentValue(m_program, guard, required)) return true;
|
||||
if (required == Value(true) || EquivalentValue(m_program, guard, required)) return true;
|
||||
const auto* test = required.TryInstruction();
|
||||
if (test != nullptr && test->GetOpcode() == ValueOpcode::INotEqual32) {
|
||||
for (uint32_t arg = 0; arg < 2u; ++arg)
|
||||
|
||||
Reference in New Issue
Block a user