Commit fac9520
authored
[Unity][Transform] Raise error in FuseOpsByPattern for SSA violation (#16421)
Internally, `FuseOpsByPattern` makes a mapping from relax variables to
the fused group containing that variable. If the input module
violates SSA, this map may be ill-formed. While not strictly
necessary for FuseOps to handle ill-formed inputs, checking it at this
level provides better error handling than propagating it to downstream
passes.
This commit checks for ill-formed inputs that would produce invalid
fused outputs and raises an error.1 parent bde28ae commit fac9520
File tree
2 files changed
+29
-1
lines changed- src/relax/transform
- tests/python/relax
2 files changed
+29
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1286 | 1286 | | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | | - | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
1290 | 1297 | | |
1291 | 1298 | | |
1292 | 1299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
1112 | 1133 | | |
1113 | 1134 | | |
0 commit comments