[llvm-commits] dependence analysis

Preston Briggs preston.briggs at gmail.com
Thu Jul 26 12:28:43 PDT 2012


I've written a dependence analyzer for LLVM. It's a fairly complete
implementation of the paper

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


It lacks an MIV test and cannot yet propagate constraints between coupled
RDIV subscripts (discussed in Section 5.3.2 of the paper). I expect to add
these in the future.

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.

How do I go about getting it ready for check in?

Thanks,
Preston
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120726/147e19f3/attachment.html>


More information about the llvm-commits mailing list