projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54914e2
)
Equal SCEVs of a subscript give rise to dependence.
author
Andreas Bolka
<a@bolka.at>
Thu, 30 Jul 2009 02:26:01 +0000
(
02:26
+0000)
committer
Andreas Bolka
<a@bolka.at>
Thu, 30 Jul 2009 02:26:01 +0000
(
02:26
+0000)
llvm-svn: 77570
llvm/lib/Analysis/LoopDependenceAnalysis.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp
b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp
index
51f6c3a
..
0c8bbd7
100644
(file)
--- a/
llvm/lib/Analysis/LoopDependenceAnalysis.cpp
+++ b/
llvm/lib/Analysis/LoopDependenceAnalysis.cpp
@@
-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