diff options
author | Takashi Kokubun <[email protected]> | 2020-12-16 22:12:50 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2020-12-16 22:17:46 -0800 |
commit | 3b4d698e0b5a79b63b05ae0c79d282a9049225e4 (patch) | |
tree | fd7b086c99091a18eb9c47e425491e0277d504d5 /tool/ruby_vm | |
parent | a09c3c6fe1f24e5956b43157e6e40dfe4f986bed (diff) |
Ignore catch_except_p for PC motion
We probably don't need to move it when an insn is leaf...
Diffstat (limited to 'tool/ruby_vm')
-rw-r--r-- | tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb b/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb index 683dce93bb..f6d611693d 100644 --- a/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb +++ b/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb @@ -7,7 +7,7 @@ % % # JIT: Move pc for catch table on catch_except_p, and for #caller_locations and rb_profile_frames on !insn.always_leaf? MAYBE_UNUSED(bool pc_moved_p) = false; - if (body->catch_except_p || <%= insn.always_leaf? ? 'FALSE' : 'TRUE' %>) { + if (<%= insn.always_leaf? ? 'false' : 'true' %>) { fprintf(f, " reg_cfp->pc = original_body_iseq + %d;\n", next_pos); /* ADD_PC(INSN_ATTR(width)); */ pc_moved_p = true; } |