Kind1 icon indicating copy to clipboard operation
Kind1 copied to clipboard

Kdl compilation genereates needless/unused terms

Open developedby opened this issue 3 years ago • 1 comments

The kind to kdl compiler currently generates code that sometimes contains lets that are never used, with an unbound variable, lets binding a variable to another (useless indirection) and dups where at least one of the bound variables is unused.

The first two I'm certain it happens and will add some examples later, the third one I'm not so sure, but vaguely remember it happening before.

developedby avatar Oct 13 '22 15:10 developedby

I think that it could be an optimization pass for all backends not only for KDL.

algebraic-dev avatar Jan 16 '23 12:01 algebraic-dev