Modern compilers are pretty amazing in what they can do for you. Found this slide deck this evening which contains a survey of 5 well known compilers (GCC, LLVM, ICC, Sun C and MSVC) and how well they handle a number of common optimizations (function inlining, constants, range checks, strength reduction, etc).
G+: Modern compilers are pretty amazing in what they …
(+1's) 1