aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ruby_vm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ruby_vm')
-rw-r--r--lib/ruby_vm/rjit/compiler.rb18
-rw-r--r--lib/ruby_vm/rjit/insn_compiler.rb3
2 files changed, 0 insertions, 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])