When Compiler Optimizations Hurt Performance