[polly] r211280 - Update for ScopStmt iterator name change in LLVM r210927
Tobias Grosser
tobias at grosser.es
Thu Jun 19 09:45:05 PDT 2014
Author: grosser
Date: Thu Jun 19 11:45:04 2014
New Revision: 211280
URL: http://llvm.org/viewvc/llvm-project?rev=211280&view=rev
Log:
Update for ScopStmt iterator name change in LLVM r210927
Contributed-by: Yabin Hu <yabin.hwu at gmail.com>
Modified:
polly/trunk/lib/CodeGen/CodeGeneration.cpp
Modified: polly/trunk/lib/CodeGen/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/CodeGeneration.cpp?rev=211280&r1=211279&r2=211280&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/CodeGeneration.cpp Thu Jun 19 11:45:04 2014
@@ -671,18 +671,15 @@ SetVector<Value *> ClastStmtCodeGen::get
OutputBytes = 0;
// Record the memory reference base addresses.
- for (Scop::iterator SI = S->begin(), SE = S->end(); SI != SE; ++SI) {
- ScopStmt *Stmt = *SI;
- for (SmallVector<MemoryAccess *, 8>::iterator I = Stmt->memacc_begin(),
- E = Stmt->memacc_end();
- I != E; ++I) {
- Value *BaseAddr = const_cast<Value *>((*I)->getBaseAddr());
+ for (ScopStmt *Stmt : *S) {
+ for (MemoryAccess *MA : *Stmt) {
+ Value *BaseAddr = const_cast<Value *>(MA->getBaseAddr());
Values.insert((BaseAddr));
// FIXME: we assume that there is one and only one array to be written
// in a SCoP.
int NumWrites = 0;
- if ((*I)->isWrite()) {
+ if (MA->isWrite()) {
++NumWrites;
assert(NumWrites <= 1 &&
"We support at most one array to be written in a SCoP.");
More information about the llvm-commits
mailing list