Skip to content

Commit 661629f

Browse files
committed
Add more comment
1 parent f419221 commit 661629f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/flowgraph.c

+3
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,9 @@ remove_redundant_deadstore(basicblock *bb)
13081308
{
13091309
for (int i = bb->b_iused - 1; i >= 0; i--) {
13101310
cfg_instr *inst = &bb->b_instr[i];
1311+
// Optimize only if the opcode is STORE_FAST and the lineno is same.
1312+
// The number of STORE_FAST will be decreased if the optimization is success.
1313+
// So most of case could be skipped.
13111314
if (inst->i_opcode == STORE_FAST) {
13121315
for (int j = i - 1; j >= 0; j--) {
13131316
cfg_instr *prev = &bb->b_instr[j];

0 commit comments

Comments
 (0)