Commit cd380e7
authored
Revert "Arm backend: Rerun duplicate-user fusion after TOSA lowering" (#21106)
Reverts #21041
This change breaks executorch/backends/arm/test:addmm
test_addmm_u55_INT[basic] on Corstone-300: the model output is all zeros
instead of the reference [[2,4],[6,8]].
Root cause: running FuseDuplicateUsersPass after InsertRescalePass. In
the
[basic] case x1 and x3 are value-identical, so FuseEqualPlaceholdersPass
merges them into a single placeholder that feeds both the matmul operand
and the bias/add path. After rescale insertion, that shared producer has
multiple tosa.RESCALE users, and fusing them corrupts the quantized
addmm
data flow, zeroing the output. Bisected to the late
FuseDuplicateUsersPass
insertion specifically (reordering EnsureUniqueOutputNodesPass is not
the
cause).
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils
@Sebastian-Larsson @robell @rascani1 parent 37400d9 commit cd380e7
2 files changed
Lines changed: 1 addition & 52 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
659 | | - | |
660 | | - | |
| 659 | + | |
661 | 660 | | |
662 | 661 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | 662 | | |
668 | 663 | | |
669 | 664 | | |
| |||
Lines changed: 0 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | | - | |
20 | 17 | | |
21 | | - | |
22 | 18 | | |
23 | 19 | | |
24 | 20 | | |
| |||
171 | 167 | | |
172 | 168 | | |
173 | 169 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
0 commit comments