Commit 9143881
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 9ae372a commit 9143881
2 files changed
+35
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
212 | 224 | | |
213 | 225 | | |
214 | 226 | | |
| |||
367 | 379 | | |
368 | 380 | | |
369 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
370 | 385 | | |
371 | 386 | | |
372 | 387 | | |
| |||
972 | 987 | | |
973 | 988 | | |
974 | 989 | | |
975 | | - | |
| 990 | + | |
976 | 991 | | |
977 | 992 | | |
978 | 993 | | |
| |||
989 | 1004 | | |
990 | 1005 | | |
991 | 1006 | | |
992 | | - | |
| 1007 | + | |
993 | 1008 | | |
994 | 1009 | | |
995 | 1010 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
664 | 682 | | |
665 | 683 | | |
666 | 684 | | |
| |||
0 commit comments