1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/yjit
Kevin Newton be55b77cc7
Better b.cond usage on AArch64 (#6305)
* Better b.cond usage on AArch64

When we're lowering a conditional jump, we previously had a bit of
a complicated setup where we could emit a conditional jump to skip
over a jump that was the next instruction, and then write out the
destination and use a branch register.

Now instead we use the b.cond instruction if our offset fits (not
common, but not unused either) and if it doesn't we write out an
inverse condition to jump past loading the destination and
branching directly.

* Added an inverse fn for Condition (#443)

Prevents the need to pass two params and potentially reduces errors.

Co-authored-by: Jimmy Miller <jimmyhmiller@jimmys-mbp.lan>

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
Co-authored-by: Jimmy Miller <jimmyhmiller@jimmys-mbp.lan>
2022-08-31 15:44:26 -04:00
..
bindgen A64: Only clear icache when writing out new code (https://github.com/Shopify/ruby/pull/442) 2022-08-29 09:09:41 -07:00
src Better b.cond usage on AArch64 (#6305) 2022-08-31 15:44:26 -04:00
.gitignore
Cargo.lock
Cargo.toml Add --enable-yjit=dev_nodebug configure option 2022-07-29 16:32:14 -07:00
yjit.mk Add --enable-yjit=dev_nodebug configure option 2022-07-29 16:32:14 -07:00