Skip to content

Commit 64eb38d

Browse files
committed
rename get_const_sequence_instructions
1 parent f42824e commit 64eb38d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Python/flowgraph.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ add_const(PyObject *newconst, PyObject *consts, PyObject *const_cache)
13511351
Returns boolean indicating whether succeeded to collect requested number of instructions.
13521352
*/
13531353
static bool
1354-
get_const_sequence_instructions(basicblock *bb, int start, cfg_instr **seq, int size)
1354+
get_const_instr_sequence(basicblock *bb, int start, cfg_instr **seq, int size)
13551355
{
13561356
assert(start < bb->b_iused);
13571357
assert(size >= 0);
@@ -1426,7 +1426,7 @@ fold_tuple_of_constants(basicblock *bb, int i, PyObject *consts, PyObject *const
14261426
}
14271427

14281428
cfg_instr *seq[STACK_USE_GUIDELINE];
1429-
if (!get_const_sequence_instructions(bb, i-1, seq, seq_size)) {
1429+
if (!get_const_instr_sequence(bb, i-1, seq, seq_size)) {
14301430
/* not a const sequence */
14311431
return SUCCESS;
14321432
}
@@ -1482,7 +1482,7 @@ optimize_lists_and_sets(basicblock *bb, int i, int nextop,
14821482
}
14831483

14841484
cfg_instr *seq[STACK_USE_GUIDELINE];
1485-
if (!get_const_sequence_instructions(bb, i-1, seq, seq_size)) { /* not a const sequence */
1485+
if (!get_const_instr_sequence(bb, i-1, seq, seq_size)) { /* not a const sequence */
14861486
if (contains_or_iter && instr->i_opcode == BUILD_LIST) {
14871487
/* iterate over a tuple instead of list */
14881488
INSTR_SET_OP1(instr, BUILD_TUPLE, instr->i_oparg);
@@ -1722,7 +1722,7 @@ fold_const_binop(basicblock *bb, int i, PyObject *consts, PyObject *const_cache)
17221722
assert(binop->i_opcode == BINARY_OP);
17231723

17241724
cfg_instr *seq[BINOP_OPERAND_COUNT];
1725-
if (!get_const_sequence_instructions(bb, i-1, seq, BINOP_OPERAND_COUNT)) {
1725+
if (!get_const_instr_sequence(bb, i-1, seq, BINOP_OPERAND_COUNT)) {
17261726
/* not a const sequence */
17271727
return SUCCESS;
17281728
}
@@ -1804,7 +1804,7 @@ fold_const_unaryop(basicblock *bb, int i, PyObject *consts, PyObject *const_cach
18041804
cfg_instr *unaryop = &bb->b_instr[i];
18051805

18061806
cfg_instr *instr;
1807-
if (!get_const_sequence_instructions(bb, i - 1, &instr, UNARYOP_OPERAND_COUNT)) {
1807+
if (!get_const_instr_sequence(bb, i - 1, &instr, UNARYOP_OPERAND_COUNT)) {
18081808
/* not a const */
18091809
return SUCCESS;
18101810
}

0 commit comments

Comments
 (0)