1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

YJIT: Remove unused branch_t::src_ctx field

No one reads it at the moment and it's heap allocated.
This commit is contained in:
Alan Wu 2021-12-15 16:13:23 -05:00 committed by GitHub
parent fbd21a81f3
commit 7e27de2f1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2021-12-16 06:13:51 +09:00
Merged: https://github.com/ruby/ruby/pull/5278

Merged-By: XrXr
2 changed files with 3 additions and 2 deletions

View file

@ -658,7 +658,7 @@ make_branch_entry(block_t *block, const ctx_t *src_ctx, branchgen_fn gen_fn)
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;

View file

@ -196,7 +196,8 @@ typedef struct yjit_branch_entry
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];