YJIT: Remove unused variables

This commit is contained in:
Nobuyoshi Nakada 2024-02-10 14:24:28 +09:00
parent ea91ab696e
commit 6cafbd35d9
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465

View file

@ -401,7 +401,6 @@ module RubyVM::YJIT
top_n_total = pairs.sum { |name, count| count } top_n_total = pairs.sum { |name, count| count }
top_n_pct = 100.0 * top_n_total / num_calls top_n_pct = 100.0 * top_n_total / num_calls
longest_name_len = pairs.max_by { |name, count| name.length }.first.length
out.puts "Top-#{pairs.size} most frequent #{type} calls (#{"%.1f" % top_n_pct}% of #{type} calls):" out.puts "Top-#{pairs.size} most frequent #{type} calls (#{"%.1f" % top_n_pct}% of #{type} calls):"
@ -429,7 +428,6 @@ module RubyVM::YJIT
out.puts "Top-#{exits.size} most frequent exit ops (#{"%.1f" % top_n_exit_pct}% of exits):" out.puts "Top-#{exits.size} most frequent exit ops (#{"%.1f" % top_n_exit_pct}% of exits):"
longest_insn_name_len = exits.max_by { |name, count| name.length }.first.length
exits.each do |name, count| exits.each do |name, count|
padded_count = format_number_pct(10, count, total_exits) padded_count = format_number_pct(10, count, total_exits)
out.puts("#{padded_count}: #{name}") out.puts("#{padded_count}: #{name}")