diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2024-01-17 10:35:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 10:35:48 -0500 |
commit | afba09d30f4c2ce6d0d77e06d5250967411cd74a (patch) | |
tree | 7bb7bf34780537f20eaf16a7d8e1cb9db2bf38d7 /yjit.rb | |
parent | 63ff29cdb4ba27eb366d706d81a74b89a1d6b18a (diff) |
YJIT: specialized codegen for integer right shift (#9564)
* YJIT: specialized codegen for integer right shift
Used in optcarrot. May also be used to write pure-Ruby gems.
No overflow check or fixnum untagging required.
* Update yjit/src/codegen.rs
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
---------
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
Diffstat (limited to 'yjit.rb')
-rw-r--r-- | yjit.rb | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -290,6 +290,7 @@ module RubyVM::YJIT print_counters(stats, out: out, prefix: "#{insn}_", prompt: "#{insn} exit reasons:", optional: true) end print_counters(stats, out: out, prefix: 'lshift_', prompt: 'left shift (opt_ltlt) exit reasons: ') + print_counters(stats, out: out, prefix: 'rshift_', prompt: 'right shift (>>) exit reasons: ') print_counters(stats, out: out, prefix: 'invalidate_', prompt: 'invalidation reasons: ') end |