llvm-6502/lib
Jingyue Wu 1241b83d61 [NVPTX] enable SpeculativeExecution in NVPTX
Summary:
SpeculativeExecution enables a series straight line optimizations (such
as SLSR and NaryReassociate) on conditional code. For example,

  if (...)
    ... b * s ...
  if (...)
    ... (b + 1) * s ...

speculative execution can hoist b * s and (b + 1) * s from then-blocks,
so that we have

  ... b * s ...
  if (...)
    ...
  ... (b + 1) * s ...
  if (...)
    ...

Then, SLSR can rewrite (b + 1) * s to (b * s + s) because after
speculative execution b * s dominates (b + 1) * s.

The performance impact of this change is significant. It speeds up the
benchmarks running EigenFloatContractionKernelInternal16x16
(ba68f42fa6/unsupported/Eigen/CXX11/src/Tensor/TensorContractionCuda.h (cl-526))
by roughly 2%. Some internal benchmarks that have the above code pattern
are improved by up to 40%. No significant slowdowns are observed on
Eigen CUDA microbenchmarks.

Reviewers: jholewinski, broune, eliben

Subscribers: llvm-commits, jholewinski

Differential Revision: http://reviews.llvm.org/D11201

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242437 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-16 20:13:48 +00:00
..
Analysis Rename LoopInfo::Analyze() to LoopInfo::analyze() and turn its parameter type to const&. 2015-07-16 18:23:57 +00:00
AsmParser
Bitcode
CodeGen LiveInterval: Document and enforce rules about empty subranges. 2015-07-16 18:55:35 +00:00
DebugInfo
ExecutionEngine Make ExecutionEngine owning a DataLayout 2015-07-16 16:34:23 +00:00
Fuzzer
IR Revert "Update LLVM bindings after r239940. ..." 2015-07-16 01:16:39 +00:00
IRReader
LibDriver
LineEditor
Linker
LTO
MC
Object Fix handling of relative paths in thin archives. 2015-07-16 00:14:49 +00:00
Option
Passes
ProfileData
Support - TargetParser does not handle armv7l in parseArchProfile(). 2015-07-16 14:54:41 +00:00
TableGen
Target [NVPTX] enable SpeculativeExecution in NVPTX 2015-07-16 20:13:48 +00:00
Transforms Internalize: internalize comdat members as a group, and drop comdat on such members. 2015-07-16 17:42:21 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile