mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-04-02 17:38:37 -04:00
shader: Read branch conditions from an instruction
Fixes the identity removal pass.
This commit is contained in:
@@ -469,7 +469,15 @@ Id EmitIdentity(EmitContext& ctx, const IR::Value& value) {
|
||||
return id;
|
||||
}
|
||||
|
||||
void EmitDummyReference(EmitContext&) {}
|
||||
Id EmitConditionRef(EmitContext& ctx, const IR::Value& value) {
|
||||
const Id id{ctx.Def(value)};
|
||||
if (!Sirit::ValidId(id)) {
|
||||
throw NotImplementedException("Forward identity declaration");
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
void EmitReference(EmitContext&) {}
|
||||
|
||||
void EmitPhiMove(EmitContext&) {
|
||||
throw LogicError("Unreachable instruction");
|
||||
|
||||
Reference in New Issue
Block a user