Commit 8275545
committed
Guard both CopyObject emission paths with type-match check
The alias-from-term CopyObject path (pre-emit_term) always emitted
CopyObject regardless of whether the operand type matched the result
type. Only the alias insertion was guarded by the type check, but the
CopyObject itself was always created — causing "operand type not
matching result type" validation errors when the egraph unified values
with different SPIR-V types.
Move CopyObject emission and used_ids tracking inside the type_matches
check, consistent with the emit_term CopyObject path.1 parent f06fb76 commit 8275545
1 file changed
Lines changed: 16 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | 1035 | | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1036 | 1047 | | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
| |||
0 commit comments