Commit 238d1e7
committed
Address review feedback on slice folding, fallthrough, attr-chain
- try_fold_constant_slice now delegates to try_fold_constant_expr so
slice bounds accept the same constants other folding paths do
(unary-folded values, __debug__, etc.).
- remove_nops resolves fallthrough predecessors through empty blocks
via next_nonempty_block before checking ends_with_for_cleanup.
- should_deopt_borrowed_attr_chain ReturnIter matcher now accepts
Instruction::CallKw alongside Instruction::Call, matching the
Call/CallKw treatment in the surrounding deopt trigger check.1 parent 23c689d commit 238d1e7
2 files changed
Lines changed: 7 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10172 | 10172 | | |
10173 | 10173 | | |
10174 | 10174 | | |
10175 | | - | |
10176 | | - | |
10177 | | - | |
10178 | | - | |
10179 | | - | |
10180 | | - | |
10181 | | - | |
10182 | | - | |
10183 | | - | |
10184 | | - | |
10185 | | - | |
10186 | | - | |
10187 | | - | |
10188 | | - | |
10189 | | - | |
10190 | | - | |
10191 | | - | |
10192 | | - | |
10193 | | - | |
10194 | | - | |
10195 | | - | |
10196 | | - | |
10197 | | - | |
10198 | | - | |
10199 | | - | |
10200 | | - | |
10201 | | - | |
10202 | 10175 | | |
10203 | 10176 | | |
10204 | 10177 | | |
| |||
10207 | 10180 | | |
10208 | 10181 | | |
10209 | 10182 | | |
10210 | | - | |
| 10183 | + | |
10211 | 10184 | | |
10212 | 10185 | | |
10213 | 10186 | | |
| |||
10216 | 10189 | | |
10217 | 10190 | | |
10218 | 10191 | | |
10219 | | - | |
| 10192 | + | |
10220 | 10193 | | |
10221 | 10194 | | |
10222 | 10195 | | |
| |||
10225 | 10198 | | |
10226 | 10199 | | |
10227 | 10200 | | |
10228 | | - | |
| 10201 | + | |
10229 | 10202 | | |
10230 | 10203 | | |
10231 | 10204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2562 | 2562 | | |
2563 | 2563 | | |
2564 | 2564 | | |
2565 | | - | |
2566 | | - | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
2567 | 2568 | | |
2568 | 2569 | | |
2569 | 2570 | | |
| |||
4407 | 4408 | | |
4408 | 4409 | | |
4409 | 4410 | | |
4410 | | - | |
| 4411 | + | |
4411 | 4412 | | |
4412 | 4413 | | |
4413 | 4414 | | |
| |||
0 commit comments