ruby-changes:70249
From: Alan <ko1@a...>
Date: Thu, 16 Dec 2021 06:13:42 +0900 (JST)
Subject: [ruby-changes:70249] 7e27de2f1e (master): YJIT: Remove unused branch_t::src_ctx field
https://git.ruby-lang.org/ruby.git/commit/?id=7e27de2f1e From 7e27de2f1e949b3494c3dc56e12d265fa9d12be8 Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Wed, 15 Dec 2021 16:13:23 -0500 Subject: YJIT: Remove unused branch_t::src_ctx field No one reads it at the moment and it's heap allocated. --- yjit_core.c | 2 +- yjit_core.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/yjit_core.c b/yjit_core.c index 02f629d9ce0..a3b52971fb3 100644 --- a/yjit_core.c +++ b/yjit_core.c @@ -658,7 +658,7 @@ make_branch_entry(block_t *block, const ctx_t *src_ctx, branchgen_fn gen_fn) https://github.com/ruby/ruby/blob/trunk/yjit_core.c#L658 branch_t *branch = calloc(1, sizeof(branch_t)); branch->block = block; - branch->src_ctx = *src_ctx; + (void)src_ctx; // Unused for now branch->gen_fn = gen_fn; branch->shape = SHAPE_DEFAULT; diff --git a/yjit_core.h b/yjit_core.h index 299dae81f55..e38dd790acb 100644 --- a/yjit_core.h +++ b/yjit_core.h @@ -196,7 +196,8 @@ typedef struct yjit_branch_entry https://github.com/ruby/ruby/blob/trunk/yjit_core.h#L196 uint8_t *end_addr; // Context right after the branch instruction - ctx_t src_ctx; + // Unused for now. + // ctx_t src_ctx; // Branch target blocks and their contexts blockid_t targets[2]; -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/