early-access version 2173

This commit is contained in:
pineappleEA
2021-10-31 18:43:26 +01:00
parent 943e9729fe
commit b37854dccc
8 changed files with 63 additions and 4 deletions

View File

@@ -378,6 +378,13 @@ void SsaRewritePass(IR::Program& program) {
for (auto block = program.post_order_blocks.rbegin(); block != end; ++block) {
VisitBlock(pass, *block);
}
for (auto block = program.post_order_blocks.rbegin(); block != end; ++block) {
for (IR::Inst& inst : (*block)->Instructions()) {
if (inst.GetOpcode() == IR::Opcode::Phi) {
inst.OrderPhiArgs();
}
}
}
}
} // namespace Shader::Optimization