Go to file
Hal Finkel 8acae5276e [PowerPC] Fix the PPCInstrInfo::getInstrLatency implementation
PowerPC uses itineraries to describe processor pipelines (and dispatch-group
restrictions for P7/P8 cores). Unfortunately, the target-independent
implementation of TII.getInstrLatency calls ItinData->getStageLatency, and that
looks for the largest cycle count in the pipeline for any given instruction.
This, however, yields the wrong answer for the PPC itineraries, because we
don't encode the full pipeline. Because the functional units are fully
pipelined, we only model the initial stages (there are no relevant hazards in
the later stages to model), and so the technique employed by getStageLatency
does not really work. Instead, we should take the maximum output operand
latency, and that's what PPCInstrInfo::getInstrLatency now does.

This caused some test-case churn, including two unfortunate side effects.
First, the new arrangement of copies we get from function parameters now
sometimes blocks VSX FMA mutation (a FIXME has been added to the code and the
test cases), and we have one significant test-suite regression:

SingleSource/Benchmarks/BenchmarkGame/spectral-norm
	56.4185% +/- 18.9398%

In this benchmark we have a loop with a vectorized FP divide, and it with the
new scheduling both divides end up in the same dispatch group (which in this
case seems to cause a problem, although why is not exactly clear). The grouping
structure is hard to predict from the bottom of the loop, and there may not be
much we can do to fix this.

Very few other test-suite performance effects were really significant, but
almost all weakly favor this change. However, in light of the issues
highlighted above, I've left the old behavior available via a
command-line flag.

llvm-svn: 242188
2015-07-14 20:02:02 +00:00
clang Run cuda options test only with specific target. 2015-07-14 18:49:17 +00:00
clang-tools-extra Added mechanism to modularize for doing a compilation precheck 2015-07-10 00:37:25 +00:00
compiler-rt profile: Autoconf build system support for r241824 2015-07-13 06:39:53 +00:00
debuginfo-tests
libclc R600: Implement accurate double precision sqrt v2 2015-07-10 13:37:08 +00:00
libcxx Fix PR24114 - std::atomic for non-Clang is not a literal type 2015-07-14 17:50:27 +00:00
libcxxabi Remove include directive for the unused libunwind_ext.h. 2015-07-12 14:47:53 +00:00
libunwind Fix unw_getcontext() return value on AArch64. 2015-06-25 15:12:46 +00:00
lld [ELF/AArch64] Fix export TLS dynamic symbol 2015-07-14 13:25:32 +00:00
lldb Add comment explaning sanity check on packet size in the packet decompression method. 2015-07-14 19:19:07 +00:00
llgo [llgo] cmd/llgoi: use line editor 2015-05-23 15:16:09 +00:00
llvm [PowerPC] Fix the PPCInstrInfo::getInstrLatency implementation 2015-07-14 20:02:02 +00:00
openmp Rename OMPT placeholder type names to be in the OMPT name space 2015-07-14 15:42:03 +00:00
polly Mark a couple of items as completed 2015-07-14 10:52:58 +00:00