dplassgit / d2lang

D2 is a strongly-typed, statically-typed, (mostly) inferred-type compiled language.
MIT License
6 stars 0 forks source link

LoopInvariantOptimizer should be able to move multiple instructions out of the loop #192

Open dplassgit opened 1 year ago

dplassgit commented 1 year ago

This would unlock

__temp1 = new RecordType
a = _temp1  // a is not used in the loop

to be moved out of the loop