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:
parent
fbd21a81f3
commit
7e27de2f1e
Notes:
git
2021-12-16 06:13:51 +09:00
Merged: https://github.com/ruby/ruby/pull/5278 Merged-By: XrXr
@ -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_t *branch = calloc(1, sizeof(branch_t));
|
||||||
|
|
||||||
branch->block = block;
|
branch->block = block;
|
||||||
branch->src_ctx = *src_ctx;
|
(void)src_ctx; // Unused for now
|
||||||
branch->gen_fn = gen_fn;
|
branch->gen_fn = gen_fn;
|
||||||
branch->shape = SHAPE_DEFAULT;
|
branch->shape = SHAPE_DEFAULT;
|
||||||
|
|
||||||
|
@ -196,7 +196,8 @@ typedef struct yjit_branch_entry
|
|||||||
uint8_t *end_addr;
|
uint8_t *end_addr;
|
||||||
|
|
||||||
// Context right after the branch instruction
|
// Context right after the branch instruction
|
||||||
ctx_t src_ctx;
|
// Unused for now.
|
||||||
|
// ctx_t src_ctx;
|
||||||
|
|
||||||
// Branch target blocks and their contexts
|
// Branch target blocks and their contexts
|
||||||
blockid_t targets[2];
|
blockid_t targets[2];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user