Skip to content

Commit bfa67f5

Browse files
committed
some adjustments
1 parent 212dacc commit bfa67f5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Python/flowgraph.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ add_const(PyObject *newconst, PyObject *consts, PyObject *const_cache)
13451345

13461346
/*
13471347
Walk basic block backwards starting from "start" trying to collect "size" number of
1348-
subsequent instructions that load constants into instruciton array "instrs" ignoring NOP's in between.
1348+
subsequent instructions that load constants into instruction array "instrs" ignoring NOP's in between.
13491349
Caller must make sure that length of "instrs" is sufficient to fit in at least "size" instructions.
13501350
13511351
Returns boolean indicating whether succeeded to collect requested number of instructions.
@@ -1376,7 +1376,7 @@ get_subsequent_const_instrs(basicblock *bb, int start, cfg_instr **instrs, int s
13761376
Caller must make sure "instrs" has at least "size" elements.
13771377
*/
13781378
static void
1379-
nop_out(basicblock *bb, cfg_instr **instrs, int size)
1379+
nop_out(cfg_instr **instrs, int size)
13801380
{
13811381
for (int i = 0; i < size; i++) {
13821382
cfg_instr *instr = instrs[i];
@@ -1449,7 +1449,7 @@ fold_tuple_of_constants(basicblock *bb, int i, PyObject *consts, PyObject *const
14491449
PyTuple_SET_ITEM(const_tuple, i, element);
14501450
}
14511451

1452-
nop_out(bb, const_instrs, seq_size);
1452+
nop_out(const_instrs, seq_size);
14531453
return instr_make_load_const(instr, const_tuple, consts, const_cache);
14541454
}
14551455

@@ -1519,7 +1519,7 @@ optimize_lists_and_sets(basicblock *bb, int i, int nextop,
15191519

15201520
int index = add_const(const_result, consts, const_cache);
15211521
RETURN_IF_ERROR(index);
1522-
nop_out(bb, const_instrs, seq_size);
1522+
nop_out(const_instrs, seq_size);
15231523

15241524
if (contains_or_iter) {
15251525
INSTR_SET_OP1(instr, LOAD_CONST, index);
@@ -1755,7 +1755,7 @@ fold_const_binop(basicblock *bb, int i, PyObject *consts, PyObject *const_cache)
17551755
return SUCCESS;
17561756
}
17571757

1758-
nop_out(bb, operands_instrs, BINOP_OPERAND_COUNT);
1758+
nop_out(operands_instrs, BINOP_OPERAND_COUNT);
17591759
return instr_make_load_const(binop, newconst, consts, const_cache);
17601760
}
17611761

@@ -1834,7 +1834,7 @@ fold_const_unaryop(basicblock *bb, int i, PyObject *consts, PyObject *const_cach
18341834
if (unaryop->i_opcode == UNARY_NOT) {
18351835
assert(PyBool_Check(newconst));
18361836
}
1837-
nop_out(bb, &operand_instr, UNARYOP_OPERAND_COUNT);
1837+
nop_out(&operand_instr, UNARYOP_OPERAND_COUNT);
18381838
return instr_make_load_const(unaryop, newconst, consts, const_cache);
18391839
}
18401840

0 commit comments

Comments
 (0)