diff --git a/src/frontend/ir/basic_block.cpp b/src/frontend/ir/basic_block.cpp index 2219262b..1dc78d7f 100644 --- a/src/frontend/ir/basic_block.cpp +++ b/src/frontend/ir/basic_block.cpp @@ -172,6 +172,7 @@ std::string DumpBlock(const IR::Block& block) { for (const auto& inst : block) { const Opcode op = inst.GetOpcode(); + ret += fmt::format("[{:016x}] ", reinterpret_cast(&inst)); if (GetTypeOf(op) != Type::Void) { ret += fmt::format("%{:<5} = ", index); } else { @@ -194,6 +195,8 @@ std::string DumpBlock(const IR::Block& block) { } } + ret += fmt::format(" (uses: {})", inst.UseCount()); + ret += '\n'; inst_to_index[&inst] = index++; }