Commit b996b81
committed
gh-152600: Remove
Changes
- moved `add_checks_for_loads_of_uninitialized_variables` earlier so
that a `LOAD_FAST` that should be a `LOAD_FAST_CHECK` are not removed.
- refactored `remove_redundant_nops_and_pairs` to be more concise. Also
extended it so that any `COPY` gets removed. I don't think there is
any reason to only remove `COPY` with an `oparg` of 1.
I don't think a NEWS entry is needed.LOAD_FAST/LOAD_FAST_BORROW; POP_TOP pairs1 parent bc3fa17 commit b996b81
2 files changed
Lines changed: 42 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2521 | 2521 | | |
2522 | 2522 | | |
2523 | 2523 | | |
2524 | | - | |
| 2524 | + | |
| 2525 | + | |
2525 | 2526 | | |
2526 | 2527 | | |
2527 | 2528 | | |
2528 | 2529 | | |
2529 | | - | |
2530 | | - | |
2531 | | - | |
2532 | | - | |
2533 | | - | |
2534 | | - | |
2535 | | - | |
2536 | | - | |
2537 | | - | |
2538 | | - | |
2539 | | - | |
2540 | | - | |
2541 | | - | |
| 2530 | + | |
| 2531 | + | |
2542 | 2532 | | |
2543 | 2533 | | |
2544 | 2534 | | |
| |||
2862 | 2852 | | |
2863 | 2853 | | |
2864 | 2854 | | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
2865 | 2882 | | |
2866 | 2883 | | |
2867 | 2884 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | | - | |
1151 | 1150 | | |
1152 | | - | |
1153 | 1151 | | |
1154 | | - | |
1155 | | - | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1156 | 1159 | | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | 1160 | | |
1166 | 1161 | | |
1167 | 1162 | | |
| |||
3790 | 3785 | | |
3791 | 3786 | | |
3792 | 3787 | | |
| 3788 | + | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
3793 | 3792 | | |
3794 | 3793 | | |
3795 | 3794 | | |
3796 | 3795 | | |
3797 | 3796 | | |
3798 | 3797 | | |
3799 | 3798 | | |
3800 | | - | |
3801 | | - | |
3802 | | - | |
3803 | 3799 | | |
3804 | 3800 | | |
3805 | 3801 | | |
| |||
0 commit comments