News for hackers. Stuff that matters.
Re:New optimizations for X86 in upcoming GCC 5.0 by vardump on Sunday November 30, 2014 @11:09AM (#8677097)
This depends entirely on the specific code you're talking about. If the compiler finds out a specific optimization is applicable for a certain block of code, then it uses it.

So your question cannot be answered. Only possible answer is "it depends". Another guess: "From nothing to an order of magnitude. Probably most cases about 5-20%."

Re:New optimizations for X86 in upcoming GCC 5.0 by livemusic on Sunday November 30, 2014 @01:53PM (#8677643)
Yeah, I realize it was an open-ended question. I'm just curious if one was starting a (C-like) compiler from scratch, where the biggest bang for the buck comes from. It seems like peephole optimizations are already handled at runtime by the CPU itself.