StanzaOrg / lbstanza-old

L.B. Stanza Programming Language
Other
216 stars 23 forks source link

globally compute uses, defs, and elim-vars ahead of eliminating instructions #94

Closed jackbackrack closed 3 years ago

jackbackrack commented 3 years ago

Eliminate-dead-code could miss dead code on functions with nested functions. The solution is to compute the uses, defs, and vars to eliminate before eliminating the instructions.