forked from OSchip/llvm-project
Equal SCEVs of a subscript give rise to dependence.
llvm-svn: 77570
This commit is contained in:
parent
54914e2b3a
commit
31d9fa2ad1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue