[polly] r186417 - Make sure the each instruction is mapped to one memory access.
Hongbin Zheng
etherzhhb at gmail.com
Tue Jul 16 08:18:51 PDT 2013
Author: ether
Date: Tue Jul 16 10:18:51 2013
New Revision: 186417
URL: http://llvm.org/viewvc/llvm-project?rev=186417&view=rev
Log:
Make sure the each instruction is mapped to one memory access.
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=186417&r1=186416&r2=186417&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Tue Jul 16 10:18:51 2013
@@ -486,6 +486,8 @@ void ScopStmt::buildAccesses(TempScop &t
E = AccFuncs->end();
I != E; ++I) {
MemAccs.push_back(new MemoryAccess(I->first, I->second, this));
+ assert(!InstructionToAccess.count(I->second)
+ && "Unexpected 1-to-N mapping on instruction to access map!");
InstructionToAccess[I->second] = MemAccs.back();
}
}
More information about the llvm-commits
mailing list