Commit 161e01f
Fix reverse division tape use in loops
Materialize the reverse-sweep divisor once before reusing it in division adjoints, avoiding forward push reuse and duplicate tape pops. Add a regression for inline divisor loops and named quotient cases.
Fixes: #18651 parent 496c05f commit 161e01f
2 files changed
Lines changed: 61 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2690 | 2690 | | |
2691 | 2691 | | |
2692 | 2692 | | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
2693 | 2696 | | |
2694 | 2697 | | |
2695 | | - | |
| 2698 | + | |
2696 | 2699 | | |
2697 | 2700 | | |
2698 | 2701 | | |
| |||
2715 | 2718 | | |
2716 | 2719 | | |
2717 | 2720 | | |
2718 | | - | |
2719 | | - | |
| 2721 | + | |
2720 | 2722 | | |
2721 | 2723 | | |
2722 | 2724 | | |
| |||
2882 | 2884 | | |
2883 | 2885 | | |
2884 | 2886 | | |
2885 | | - | |
| 2887 | + | |
2886 | 2888 | | |
2887 | 2889 | | |
2888 | 2890 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
0 commit comments