[llvm-commits] [polly] r135340 - /polly/trunk/lib/Exchange/JSONExporter.cpp

Raghesh Aloor raghesh.a at gmail.com
Fri Jul 15 21:55:09 PDT 2011


Author: raghesh
Date: Fri Jul 15 23:55:09 2011
New Revision: 135340

URL: http://llvm.org/viewvc/llvm-project?rev=135340&view=rev
Log:
Memaccess: Bugfix-Reading of JSCoP file fails

While iterating through the memory accesses in JSCOP file
the inner loop index was not initialized to zero.


Modified:
    polly/trunk/lib/Exchange/JSONExporter.cpp

Modified: polly/trunk/lib/Exchange/JSONExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/JSONExporter.cpp?rev=135340&r1=135339&r2=135340&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/JSONExporter.cpp (original)
+++ polly/trunk/lib/Exchange/JSONExporter.cpp Fri Jul 15 23:55:09 2011
@@ -251,13 +251,13 @@
   }
 
   int statementIdx = 0;
-  int memoryAccessIdx = 0;
   for (Scop::iterator SI = S->begin(), SE = S->end(); SI != SE; ++SI) {
     ScopStmt *Stmt = *SI;
 
     if (Stmt->isFinalRead())
       continue;
 
+    int memoryAccessIdx = 0;
     for (ScopStmt::memacc_iterator MI = Stmt->memacc_begin(),
          ME = Stmt->memacc_end(); MI != ME; ++MI) {
       Json::Value accesses = jscop["statements"][statementIdx]





More information about the llvm-commits mailing list