Commit 35b7405
committed
Per-Fusion name counters fix duplicate TV names after copy
Move val/expr name counters from IrContainer to Fusion so each Fusion
independently tracks name assignment. This fixes CI failures where
Fusion::copy left the dest counter at N (number of cloned vals) instead
of max(name)+1 when source names were non-sequential, causing newly
created TVs to collide with existing names.
The fix adds val_type_name_map_ and expr_name_counter_ to Fusion, and
updates registerVal/registerExpr to use the Fusion-level counters.
Fusion::copy syncs counters from source to dest after cloning.
Fusion::swap exchanges counters. Fusion::clear resets them.1 parent a215b34 commit 35b7405
2 files changed
Lines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
210 | 222 | | |
211 | 223 | | |
212 | 224 | | |
| |||
365 | 377 | | |
366 | 378 | | |
367 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
368 | 383 | | |
369 | 384 | | |
370 | 385 | | |
| |||
980 | 995 | | |
981 | 996 | | |
982 | 997 | | |
983 | | - | |
| 998 | + | |
984 | 999 | | |
985 | 1000 | | |
986 | 1001 | | |
| |||
997 | 1012 | | |
998 | 1013 | | |
999 | 1014 | | |
1000 | | - | |
| 1015 | + | |
1001 | 1016 | | |
1002 | 1017 | | |
1003 | 1018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
650 | 668 | | |
651 | 669 | | |
652 | 670 | | |
| |||
0 commit comments