Re:How an Optimizing Compiler Works
by kidintech on Tuesday November 12, 2019 @05:01AM
(#21512919)
Yeah haha, caught it just after I wrote my comment. IMO, I expected the author to talk about that right after the snippet, as it was the first thing that stuck out.
> multiplied does not: it starts off 0, and every time it is multiplied via multiplied = multiplied * count it remains 0.
The article then goes on to use that fact for some optimizations.