heir
heir copied to clipboard
Fold newly added layout conversions after each layout optimization rewrite
In #1588 we don't fold new layout conversion hoisted through ops, which means future rewrites may not get the most minimal cost in some cases.
Add an efficient way to fold these operations after each rewrite.
We have this as pass-postprocessing at the moment. Should we do more here?