llvm-6502/lib
Jingyue Wu 85e632de29 Add a speculative execution pass
Summary:
This is a pass for speculative execution of instructions for simple if-then (triangle) control flow. It's aimed at GPUs, but could perhaps be used in other contexts. Enabling this pass gives us a 1.0% geomean improvement on Google benchmark suites, with one benchmark improving 33%.

Credit goes to Jingyue Wu for writing an earlier version of this pass.

Patched by Bjarke Roune. 

Test Plan:
This patch adds a set of tests in test/Transforms/SpeculativeExecution/spec.ll
The pass is controlled by a flag which defaults to having the pass not run.

Reviewers: eliben, dberlin, meheff, jingyue, hfinkel

Reviewed By: jingyue, hfinkel

Subscribers: majnemer, jholewinski, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237459 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-15 17:54:48 +00:00
..
Analysis Allow min/max detection to see through casts. 2015-05-15 16:04:50 +00:00
AsmParser
Bitcode
CodeGen [SDAGBuilder] Make the AArch64 builder happier. 2015-05-15 17:41:29 +00:00
DebugInfo
ExecutionEngine
Fuzzer
IR Add a speculative execution pass 2015-05-15 17:54:48 +00:00
IRReader
LineEditor
Linker
LTO
MC MC: Avoid some UB caused by left shifting a negative value. NFC 2015-05-14 23:54:49 +00:00
Object
Option
Passes
ProfileData
Support
TableGen
Target Mark SMIN/SMAX/UMIN/UMAX nodes as legal and add patterns for them. 2015-05-15 16:15:57 +00:00
Transforms Add a speculative execution pass 2015-05-15 17:54:48 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile