Download Simple Performance Optimization Tool SPOT 20 User`s Guide

Transcript
The spot_diff Report
FIGURE 3–17
Bit Instruction Counts Report
The binary was compiled with -xbinopt=prepare, so SPOT was able to gather instruction
count data. The difference in instruction count between the binary compiled at -xO2 and at
-fast is mostly due to unrolling (and to a much lesser extent, inlining) done by the compiler at
-fast which greatly reduces the amount of branches and loop-related calculations. The
prefetch instructions that appear only with -fast optimization also appear in this table, and are
largely responsible for the better cache performance in the -fast experiment. Only instructions
that show both high variance between experiments and a high total count are printed in this
table. For example, both experiments have a large number of floating point loads which are not
listed in this table because the counts were largely the same in the two experiments. Detailed Bit
data can be seen by clicking down into the individual Spot experiments.
Chapter 3 • Understanding SPOT Reports
41