We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f419221 commit 661629fCopy full SHA for 661629f
Python/flowgraph.c
@@ -1308,6 +1308,9 @@ remove_redundant_deadstore(basicblock *bb)
1308
{
1309
for (int i = bb->b_iused - 1; i >= 0; i--) {
1310
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.
1314
if (inst->i_opcode == STORE_FAST) {
1315
for (int j = i - 1; j >= 0; j--) {
1316
cfg_instr *prev = &bb->b_instr[j];
0 commit comments