4 ms·
> This isn't a true Scotsman, or this isn't representative of real world code It is, but induction variables optimization generally requires lots of memory acc
by bonzini 4y ago
> This isn't a true Scotsman, or this isn't representative of real world code
It is, but induction variables optimization generally requires lots of memory accesses. I will try to come up with something.
> Dead code elimination is one of the most important optimizations
Yes, inlined code has a lot of constant conditions and code that similarly only follows one path only. Dead code elimination, constant propagation, eliminating stuff like &*x so that x can stay in a register, are all very important to achieve zero-cost abstraction. Mostly in C++, Rust and the like, but also in C.