tvm icon indicating copy to clipboard operation
tvm copied to clipboard

[Unity][Transform] Raise error in FuseOpsByPattern for SSA violation

Open Lunderberg opened this issue 1 year ago • 1 comments
trafficstars

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.

Lunderberg avatar Jan 17 '24 17:01 Lunderberg

Rebased onto main to resolve conflicts

Lunderberg avatar Feb 14 '24 15:02 Lunderberg