From cdebf57ec670f35cf07460778e40f6801050ffb5 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Thu, 18 Nov 2021 10:44:31 -0500 Subject: 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 --- yjit_iface.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'yjit_iface.c') 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(); -- cgit v1.2.3