Commit 41efd21
authored
[mypyc] feat: support constant folding in
This PR attempts to constant fold the divisor value in
`try_optimize_int_floor_divide`
I'm not sure any test changes are warranted for a small PR of this
nature.try_optimize_int_floor_divide (python#19973)1 parent baabf49 commit 41efd21
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | | - | |
| 561 | + | |
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
| 574 | + | |
575 | 575 | | |
576 | | - | |
| 576 | + | |
| 577 | + | |
577 | 578 | | |
578 | | - | |
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
| |||
0 commit comments