projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb916fb
)
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77570
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/LoopDependenceAnalysis.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/LoopDependenceAnalysis.cpp
b/lib/Analysis/LoopDependenceAnalysis.cpp
index 51f6c3aafd913f79c0413964ceba7cb4b25740cd..0c8bbd7a568c2bc0336e53f0fe48a0dd243ba386 100644
(file)
--- a/
lib/Analysis/LoopDependenceAnalysis.cpp
+++ b/
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