Skip to content

Commit 6065dd8

Browse files
committed
post merge fixes
1 parent 72ce208 commit 6065dd8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/shader_recompiler/ir/microinstruction.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: GPL-2.0-or-later
33

44
#include <algorithm>
5-
#include <any>
65
#include <memory>
76

87
#include "shader_recompiler/exception.h"
@@ -149,8 +148,8 @@ void Inst::AddPhiOperand(Block* predecessor, const Value& value) {
149148
}
150149

151150
void Inst::Invalidate() {
152-
ASSERT(users.list.empty());
153151
ClearArgs();
152+
ASSERT(users.list.empty());
154153
ReplaceOpcode(Opcode::Void);
155154
}
156155

src/shader_recompiler/recompiler.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ IR::Program TranslateProgram(std::span<const u32> code, Pools& pools, Info& info
8383
};
8484

8585
Shader::Optimization::SsaRewritePass(program.post_order_blocks);
86-
if (extra_id_removal) {
87-
Shader::Optimization::IdentityRemovalPass(program.blocks);
88-
}
86+
Shader::Optimization::IdentityRemovalPass(program.blocks);
87+
dumpMatchingIR("post_ssa");
8988
if (stage == Stage::Hull) {
9089
dumpMatchingIR("pre_hull");
9190
Shader::Optimization::HullShaderTransform(program, runtime_info);

0 commit comments

Comments
 (0)