Prev: asus laptop sound to soft
Next: O_NONBLOCK with Ext2/3
From: Peter Zijlstra on 10 Jun 2010 08:50 On Wed, 2010-06-09 at 17:39 -0400, Jason Baron wrote: > +The optimization depends on !CC_OPTIMIZE_FOR_SIZE. When CC_OPTIMIZE_FOR_SIZE is > +set, gcc does not always out of line the not taken label path in the same way > +that the "if unlikely()" paths are made out of line. Thus, with > +CC_OPTIMIZE_FOR_SIZE set, this optimization is not always optimal. This may be > +solved in subsequent gcc versions, that allow us to move labels out of line, > +while still optimizing for size. In the case of !CC_OPTIMIZE_FOR_SIZE this > +optimization is seen on high level benchmarks such as tbench where I can get > +~1-2% higher throughput. In addition we are within .5% of the performance of no > +tracepoints compiled in at all. But does it generate invalid code for whatever -f flag triggers this (-fno-reorder-blocks ?) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: asus laptop sound to soft Next: O_NONBLOCK with Ext2/3 |