> I love that despite working with compilers for more than twenty years, they can still surprise and delight me.
This kind of optimization, complete loop removal and computing the final value for simple math loops, is at least 10 years old.
This kind of optimization, complete loop removal and computing the final value for simple math loops, is at least 10 years old.
In topics like compiler optimization, is not like there are many books which describe this kind of algorithms.
Seems like the author is both surprised and delighted with an optimization they learned of today. Surely you’ve been in the same situation before.