Hacker News new | past | comments | ask | show | jobs | submit login

> Modification to computed work should always generate a warning so the optimization can be applied to the source code, or bugs corrected.

This only works out in very, very limited cases. What if this opportunity only presents itself after inlining? What if it's the result of a macro? Or a C++ template?

Just because the compiler can optimize something out in one case doesn't mean you can just delete it in the code...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: