1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Equal SCEVs of a subscript give rise to dependence.

llvm-svn: 77570
This commit is contained in:
Andreas Bolka 2009-07-30 02:26:01 +00:00
parent 9ac19401cd
commit 56d7bc03dd

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