From 3cb5e7558ddbaf9535a6937616fb9e8db13dbcbb Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 3 Apr 2023 08:44:16 -0700 Subject: [PATCH] Fix a test_rubyoptions failure --- lib/ruby_vm/rjit/compiler.rb | 18 ------------------ lib/ruby_vm/rjit/insn_compiler.rb | 3 --- 2 files changed, 21 deletions(-) diff --git a/lib/ruby_vm/rjit/compiler.rb b/lib/ruby_vm/rjit/compiler.rb index 5eebef9a77..203c2658df 100644 --- a/lib/ruby_vm/rjit/compiler.rb +++ b/lib/ruby_vm/rjit/compiler.rb @@ -402,24 +402,6 @@ module RubyVM::RJIT end return best_version - - versions.find do |block| - dst = block.ctx - - # Can only lookup the first version in the chain - if dst.chain_depth != 0 - next false - end - - # Blocks with depth > 0 always produce new versions - # Sidechains cannot overlap - if src.chain_depth != 0 - next false - end - - src.stack_size == dst.stack_size && - src.sp_offset == dst.sp_offset - end end # @param [RubyVM::RJIT::Block] block diff --git a/lib/ruby_vm/rjit/insn_compiler.rb b/lib/ruby_vm/rjit/insn_compiler.rb index 1a0514e75a..f01fb684c7 100644 --- a/lib/ruby_vm/rjit/insn_compiler.rb +++ b/lib/ruby_vm/rjit/insn_compiler.rb @@ -2990,9 +2990,6 @@ module RubyVM::RJIT return false end - # Generate a side exit - side_exit = side_exit(jit, ctx) - # Guard that the concat argument is a string asm.mov(:rax, ctx.stack_opnd(0)) guard_object_is_string(jit, ctx, asm, :rax, :rcx, StackOpnd[0])