Commit 0c27438
committed
compiler: Shed reduction-only halos when lowering injections
After lifting lower_sparse_ops out of mpiize, an injection nest is
turned into a Call before optimize_halospots runs, so
_drop_reduction_halospots can no longer detect that the wrapping
HaloSpot's entry for the injected field is reduction-only. The stale
entry was left in place, and on save=True (no modulo buffering) the
hoist pass propagated the loop iteration variable out of the time
loop, producing an undeclared 'time' reference. Drop those entries at
lowering time so the resulting HaloSpot only carries entries with a
genuine read at the IET level.1 parent 7e07f72 commit 0c27438
2 files changed
Lines changed: 42 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
90 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
91 | 113 | | |
92 | 114 | | |
93 | 115 | | |
| |||
107 | 129 | | |
108 | 130 | | |
109 | 131 | | |
110 | | - | |
| 132 | + | |
111 | 133 | | |
112 | | - | |
113 | | - | |
114 | | - | |
| 134 | + | |
115 | 135 | | |
116 | 136 | | |
117 | | - | |
| 137 | + | |
118 | 138 | | |
119 | 139 | | |
120 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2660 | 2660 | | |
2661 | 2661 | | |
2662 | 2662 | | |
2663 | | - | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
2664 | 2666 | | |
2665 | 2667 | | |
2666 | 2668 | | |
| |||
2914 | 2916 | | |
2915 | 2917 | | |
2916 | 2918 | | |
2917 | | - | |
| 2919 | + | |
2918 | 2920 | | |
2919 | 2921 | | |
2920 | 2922 | | |
2921 | | - | |
2922 | | - | |
| 2923 | + | |
| 2924 | + | |
2923 | 2925 | | |
2924 | 2926 | | |
2925 | 2927 | | |
| |||
2966 | 2968 | | |
2967 | 2969 | | |
2968 | 2970 | | |
2969 | | - | |
| 2971 | + | |
| 2972 | + | |
2970 | 2973 | | |
2971 | 2974 | | |
2972 | 2975 | | |
| |||
3024 | 3027 | | |
3025 | 3028 | | |
3026 | 3029 | | |
3027 | | - | |
| 3030 | + | |
3028 | 3031 | | |
3029 | 3032 | | |
3030 | 3033 | | |
| |||
0 commit comments