summaryrefslogtreecommitdiff
path: root/yjit_iface.c
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2021-11-18 10:44:31 -0500
committerGitHub <noreply@github.com>2021-11-18 10:44:31 -0500
commitcdebf57ec670f35cf07460778e40f6801050ffb5 (patch)
treec279524b6e949311aef31fbf9acc1533d5abb58e /yjit_iface.c
parentf3dcb4bbf7253690abba02e64a051390c55237cb (diff)
Add --yjit-no-type-prop so we can test YJIT without type propagation (#5135)
* Add --yjit-no-type-prop so we can test YJIT without type propagation * Fix typo in command line option * Leave just two test workflows enable for YJIT
Notes
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'yjit_iface.c')
-rw-r--r--yjit_iface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/yjit_iface.c b/yjit_iface.c
index 5c9dc891ba..a880a870ed 100644
--- a/yjit_iface.c
+++ b/yjit_iface.c
@@ -1210,6 +1210,12 @@ rb_yjit_init(struct rb_yjit_options *options)
rb_yjit_opts.max_versions = 4;
}
+ // If type propagation is disabled, max 1 version per block
+ if (rb_yjit_opts.no_type_prop)
+ {
+ rb_yjit_opts.max_versions = 1;
+ }
+
blocks_assuming_stable_global_constant_state = st_init_numtable();
blocks_assuming_single_ractor_mode = st_init_numtable();
blocks_assuming_bops = st_init_numtable();