glsl: INeg and IAdd negate tests

This commit is contained in:
ameerj 2021-05-21 02:20:08 -04:00
parent e221baccdd
commit 78f5eb90d7
3 changed files with 108 additions and 96 deletions

View file

@ -51,8 +51,7 @@ std::string RegAlloc::Define(IR::Inst& inst, Type type) {
}
std::string RegAlloc::Consume(const IR::Value& value) {
const auto result = value.IsImmediate() ? MakeImm(value) : Consume(*value.InstRecursive());
return result;
return value.IsImmediate() ? MakeImm(value) : Consume(*value.InstRecursive());
}
std::string RegAlloc::Consume(IR::Inst& inst) {