Commit 9737ff1
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 be25eaa commit 9737ff1
2 files changed
+35
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
211 | 223 | | |
212 | 224 | | |
213 | 225 | | |
| |||
366 | 378 | | |
367 | 379 | | |
368 | 380 | | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
369 | 384 | | |
370 | 385 | | |
371 | 386 | | |
| |||
975 | 990 | | |
976 | 991 | | |
977 | 992 | | |
978 | | - | |
| 993 | + | |
979 | 994 | | |
980 | 995 | | |
981 | 996 | | |
| |||
992 | 1007 | | |
993 | 1008 | | |
994 | 1009 | | |
995 | | - | |
| 1010 | + | |
996 | 1011 | | |
997 | 1012 | | |
998 | 1013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
663 | 681 | | |
664 | 682 | | |
665 | 683 | | |
| |||
0 commit comments