summaryrefslogtreecommitdiffstats
path: root/polly/lib
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-02-20 21:29:09 +0000
committerTobias Grosser <tobias@grosser.es>2014-02-20 21:29:09 +0000
commitd6aafa7c2e86c4e51fd996ca4463c84d7b13b5c4 (patch)
treec9154b537da1d76fec929ec256c81e224ee9f83f /polly/lib
parent612c2bc0710c9c8ff5bb693722b4f814258cb80d (diff)
downloadbcm5719-llvm-d6aafa7c2e86c4e51fd996ca4463c84d7b13b5c4.tar.gz
bcm5719-llvm-d6aafa7c2e86c4e51fd996ca4463c84d7b13b5c4.zip
Do not track location of scalar dependences in ScopInfo
We do not have a use for this information at the moment. If we need this at some point, the "instruction -> access" mapping needs to be enhanced as a single instruction could then possibly perform multiple accesses. This patch allows us to build the polyhedral information for scops with scalar dependences. llvm-svn: 201815
Diffstat (limited to 'polly/lib')
-rw-r--r--polly/lib/Analysis/ScopInfo.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index 1b6ddeceac7..c69c85c3357 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -528,9 +528,17 @@ void ScopStmt::buildAccesses(TempScop &tempScop, const Region &CurRegion) {
E = AccFuncs->end();
I != E; ++I) {
MemAccs.push_back(new MemoryAccess(I->first, I->second, this));
- assert(!InstructionToAccess.count(I->second) &&
+
+ // We do not track locations for scalar memory accesses at the moment.
+ //
+ // We do not have a use for this information at the moment. If we need this
+ // at some point, the "instruction -> access" mapping needs to be enhanced
+ // as a single instruction could then possibly perform multiple accesses.
+ if (!I->first.isScalar()) {
+ assert(!InstructionToAccess.count(I->second) &&
"Unexpected 1-to-N mapping on instruction to access map!");
- InstructionToAccess[I->second] = MemAccs.back();
+ InstructionToAccess[I->second] = MemAccs.back();
+ }
}
}
OpenPOWER on IntegriCloud