[LAA] LLE 2/6: Fix a NoDep case that should be a Forward dependence
authorAdam Nemet <anemet@apple.com>
Tue, 3 Nov 2015 20:13:43 +0000 (20:13 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 3 Nov 2015 20:13:43 +0000 (20:13 +0000)
commit07bcdf3c682fc3537620d60279651c4ceab4746a
tree74da3bb98ca264774ffb525010ebc564b5295efd
parent26abcb32772f9d7a198612a9d1ac5f437a3f8da1
[LAA] LLE 2/6: Fix a NoDep case that should be a Forward dependence

Summary:
When the dependence distance in zero then we have a loop-independent
dependence from the earlier to the later access.

No current client of LAA uses forward dependences so other than
potentially hitting the MaxDependences threshold earlier, this change
shouldn't affect anything right now.

This and the previous patch were tested together for compile-time
regression.  None found in LNT/SPEC.

Reviewers: hfinkel

Subscribers: rengolin, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251973 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopAccessAnalysis.h
lib/Analysis/LoopAccessAnalysis.cpp
test/Analysis/LoopAccessAnalysis/forward-loop-independent.ll [new file with mode: 0644]