logoalt Hacker News

gizmo686yesterday at 9:56 PM1 replyview on HN

It's not clear to me what optimizations the compiler actually did here. Years ago, I worked on a niche compiler, and was routinely surprised by what the optimizer was able to figure out; despite having personally written most of the optimization transformations myself.


Replies

steveklabniktoday at 2:03 AM

I can't actually speak to the specifics here but usually this is "idiom recognition", that is, it just notices that the pattern is there and transforms it directly.