mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 21:57:55 +00:00
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:
parent
bb916fbadd
commit
713395950a
@ -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