dependence analysis
authorSebastian Pop <spop@codeaurora.org>
Thu, 11 Oct 2012 07:32:34 +0000 (07:32 +0000)
committerSebastian Pop <spop@codeaurora.org>
Thu, 11 Oct 2012 07:32:34 +0000 (07:32 +0000)
commit59b61b9e2c549956b1094417a72c3943c20c9234
treeb0c06f4ab2b68f1627c739bb55ed2bc35614ab4f
parent6b49c2f69c71c1fa7b492afb22da843107a1390e
dependence analysis

Patch from Preston Briggs <preston.briggs@gmail.com>.

This is an updated version of the dependence-analysis patch, including an MIV
test based on Banerjee's inequalities.

It's a fairly complete implementation of the paper

    Practical Dependence Testing
    Gina Goff, Ken Kennedy, and Chau-Wen Tseng
    PLDI 1991

It cannot yet propagate constraints between coupled RDIV subscripts (discussed
in Section 5.3.2 of the paper).

It's organized as a FunctionPass with a single entry point that supports testing
for dependence between two instructions in a function. If there's no dependence,
it returns null. If there's a dependence, it returns a pointer to a Dependence
which can be queried about details (what kind of dependence, is it loop
independent, direction and distance vector entries, etc). I haven't included
every imaginable feature, but there's a good selection that should be adequate
for supporting many loop transformations. Of course, it can be extended as
necessary.

Included in the patch file are many test cases, commented with C code showing
the loops and array references.

llvm-svn: 165708
23 files changed:
llvm/include/llvm/Analysis/DependenceAnalysis.h [new file with mode: 0644]
llvm/include/llvm/Analysis/Passes.h
llvm/include/llvm/InitializePasses.h
llvm/include/llvm/LinkAllPasses.h
llvm/lib/Analysis/Analysis.cpp
llvm/lib/Analysis/CMakeLists.txt
llvm/lib/Analysis/DependenceAnalysis.cpp [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/Banerjee.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/Coupled.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/ExactRDIV.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/ExactSIV.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/GCD.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/Preliminary.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/Propagating.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/Separability.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/StrongSIV.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/SymbolicRDIV.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/SymbolicSIV.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/WeakCrossingSIV.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/WeakZeroDstSIV.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/WeakZeroSrcSIV.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/ZIV.ll [new file with mode: 0644]
llvm/test/Analysis/DependenceAnalysis/lit.local.cfg [new file with mode: 0644]