Equal SCEVs of a subscript give rise to dependence.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77570 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andreas Bolka 2009-07-30 02:26:01 +00:00
parent bb916fbadd
commit 713395950a

View File

@ -127,7 +127,17 @@ LoopDependenceAnalysis::DependenceResult
LoopDependenceAnalysis::analyseSubscript(const SCEV *A,
const SCEV *B,
Subscript *S) const {
return Unknown; // TODO: Implement.
DEBUG(errs() << " Testing subscript: " << *A << ", " << *B << "\n");
if (A == B) {
DEBUG(errs() << " -> [D] same SCEV\n");
return Dependent;
}
// TODO: Implement ZIV/SIV/MIV testers.
DEBUG(errs() << " -> [?] cannot analyse subscript\n");
return Unknown;
}
LoopDependenceAnalysis::DependenceResult