Skip to content

Commit

Permalink
YJIT: Remove unused branch_t::src_ctx field
Browse files Browse the repository at this point in the history
No one reads it at the moment and it's heap allocated.
  • Loading branch information
XrXr committed Dec 15, 2021
1 parent fbd21a8 commit 7e27de2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion yjit_core.c
Expand Up @@ -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;

Expand Down
3 changes: 2 additions & 1 deletion yjit_core.h
Expand Up @@ -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];
Expand Down

0 comments on commit 7e27de2

Please sign in to comment.