summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/basic_block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/frontend/ir/basic_block.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/basic_block.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/ir/basic_block.cpp b/src/shader_recompiler/frontend/ir/basic_block.cpp
index b5616f394..c97626712 100644
--- a/src/shader_recompiler/frontend/ir/basic_block.cpp
+++ b/src/shader_recompiler/frontend/ir/basic_block.cpp
@@ -113,7 +113,7 @@ static std::string ArgToIndex(const std::map<const Block*, size_t>& block_to_ind
113 if (arg.IsLabel()) { 113 if (arg.IsLabel()) {
114 return BlockToIndex(block_to_index, arg.Label()); 114 return BlockToIndex(block_to_index, arg.Label());
115 } 115 }
116 if (!arg.IsImmediate()) { 116 if (!arg.IsImmediate() || arg.IsIdentity()) {
117 return fmt::format("%{}", InstIndex(inst_to_index, inst_index, arg.Inst())); 117 return fmt::format("%{}", InstIndex(inst_to_index, inst_index, arg.Inst()));
118 } 118 }
119 switch (arg.Type()) { 119 switch (arg.Type()) {
@@ -166,7 +166,7 @@ std::string DumpBlock(const Block& block, const std::map<const Block*, size_t>&
166 const std::string arg_str{ArgToIndex(block_to_index, inst_to_index, inst_index, arg)}; 166 const std::string arg_str{ArgToIndex(block_to_index, inst_to_index, inst_index, arg)};
167 ret += arg_index != 0 ? ", " : " "; 167 ret += arg_index != 0 ? ", " : " ";
168 if (op == Opcode::Phi) { 168 if (op == Opcode::Phi) {
169 ret += fmt::format("[ {}, {} ]", arg_index, 169 ret += fmt::format("[ {}, {} ]", arg_str,
170 BlockToIndex(block_to_index, inst.PhiBlock(arg_index))); 170 BlockToIndex(block_to_index, inst.PhiBlock(arg_index)));
171 } else { 171 } else {
172 ret += arg_str; 172 ret += arg_str;