diff options
| author | Michael Kruse <llvm@meinersbur.de> | 2017-10-31 10:28:22 +0000 |
|---|---|---|
| committer | Michael Kruse <llvm@meinersbur.de> | 2017-10-31 10:28:22 +0000 |
| commit | 06618bf71aa80466cc50181f16f0f5c1ba71e91a (patch) | |
| tree | bb7183fcd328dabcb8cb4c7d788ba0761230f14b /polly/lib | |
| parent | 64325c51ada0d3a49773e530b47d605bb7528314 (diff) | |
| download | bcm5719-llvm-06618bf71aa80466cc50181f16f0f5c1ba71e91a.tar.gz bcm5719-llvm-06618bf71aa80466cc50181f16f0f5c1ba71e91a.zip | |
[OpenMP] Fix reference collection of latest base ptrs.
When collecting base pointers that need to be made available in parallel
subfunctions, use the base pointer associated with the latest
ScopArrayInfo, instead of the original one.
llvm-svn: 316983
Diffstat (limited to 'polly/lib')
| -rw-r--r-- | polly/lib/CodeGen/IslNodeBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/IslNodeBuilder.cpp b/polly/lib/CodeGen/IslNodeBuilder.cpp index d6dafcbcb4a..381195d48ee 100644 --- a/polly/lib/CodeGen/IslNodeBuilder.cpp +++ b/polly/lib/CodeGen/IslNodeBuilder.cpp @@ -263,7 +263,7 @@ isl_stat addReferencesFromStmt(const ScopStmt *Stmt, void *UserPtr, } if (Access->isLatestArrayKind()) { - auto *BasePtr = Access->getScopArrayInfo()->getBasePtr(); + auto *BasePtr = Access->getLatestScopArrayInfo()->getBasePtr(); if (Instruction *OpInst = dyn_cast<Instruction>(BasePtr)) if (Stmt->getParent()->contains(OpInst)) continue; |

