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:
parent
9ac19401cd
commit
56d7bc03dd
@ -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
Block a user