summaryrefslogtreecommitdiff
path: root/polly/lib/CodeGen/BlockGenerators.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2015-09-18 19:59:43 +0000
committerMichael Kruse <llvm@meinersbur.de>2015-09-18 19:59:43 +0000
commite2bccbbfb2247e7dcda78771bc447d57e57a86ba (patch)
treeba35c3dbe2ba4e20347d755ba8cdcfd13ba055d7 /polly/lib/CodeGen/BlockGenerators.cpp
parent92191730f867f681266ac0548b95ad0dc0db7909 (diff)
Merge IRAccess into MemoryAccess
All MemoryAccess objects will be owned by ScopInfo::AccFuncMap which previously stored the IRAccess objects. Instead of creating new MemoryAccess objects, the already created ones are reused, but their order might be different now. Some fields of IRAccess and MemoryAccess had the same meaning and are merged. This is the last step of fusioning TempScopInfo.{h|cpp} and ScopInfo.{h.cpp}. Some refactoring might still make sense. Differential Revision: http://reviews.llvm.org/D12843 llvm-svn: 248024
Diffstat (limited to 'polly/lib/CodeGen/BlockGenerators.cpp')
-rw-r--r--polly/lib/CodeGen/BlockGenerators.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp
index b0212cd12546..3d1fd4d25e1d 100644
--- a/polly/lib/CodeGen/BlockGenerators.cpp
+++ b/polly/lib/CodeGen/BlockGenerators.cpp
@@ -406,12 +406,12 @@ void BlockGenerator::generateScalarLoads(ScopStmt &Stmt,
if (!MAL)
return;
- for (MemoryAccess &MA : *MAL) {
- if (!MA.isScalar() || !MA.isRead())
+ for (MemoryAccess *MA : *MAL) {
+ if (!MA->isScalar() || !MA->isRead())
continue;
- auto *Address = getOrCreateAlloca(MA);
- BBMap[MA.getBaseAddr()] =
+ auto *Address = getOrCreateAlloca(*MA);
+ BBMap[MA->getBaseAddr()] =
Builder.CreateLoad(Address, Address->getName() + ".reload");
}
}