[polly] r237441 - Remove need for separate loop index counter
Tobias Grosser
tobias at grosser.es
Fri May 15 05:24:12 PDT 2015
Author: grosser
Date: Fri May 15 07:24:12 2015
New Revision: 237441
URL: http://llvm.org/viewvc/llvm-project?rev=237441&view=rev
Log:
Remove need for separate loop index counter
Suggested-by: Johannes Doerfert
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=237441&r1=237440&r2=237441&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri May 15 07:24:12 2015
@@ -875,8 +875,6 @@ void ScopStmt::buildAccesses(TempScop &t
if (!AFS)
return;
- int Identifier = 0;
-
for (auto &AccessPair : *AFS) {
IRAccess &Access = AccessPair.first;
Instruction *AccessInst = AccessPair.second;
@@ -889,8 +887,7 @@ void ScopStmt::buildAccesses(TempScop &t
Access.setMayWrite();
MemAccs.push_back(
- new MemoryAccess(Access, AccessInst, this, SAI, Identifier));
- Identifier++;
+ new MemoryAccess(Access, AccessInst, this, SAI, MemAccs.size()));
// We do not track locations for scalar memory accesses at the moment.
//
More information about the llvm-commits
mailing list