diff options
author | Tobias Grosser <tobias@grosser.es> | 2015-12-07 18:06:08 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2015-12-07 18:06:08 +0000 |
commit | 31441c46147c476766ec6169e6db73f61a267924 (patch) | |
tree | 383fe58f7ae949daa4105fa17c2f37335c7ccc3f | |
parent | fe2e9121e27aaf4ef4f37a5fda06e773bc6cc42f (diff) | |
download | bcm5719-llvm-31441c46147c476766ec6169e6db73f61a267924.tar.gz bcm5719-llvm-31441c46147c476766ec6169e6db73f61a267924.zip |
ScopInfo: Add MemoryAccess::isScalar()
Suggested-by: Michael Kruse <llvm@meinersbur.de>
llvm-svn: 254921
-rw-r--r-- | polly/include/polly/ScopInfo.h | 3 | ||||
-rw-r--r-- | polly/lib/Analysis/ScopInfo.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index 9eae0e37b6a..b9ed78bdc92 100644 --- a/polly/include/polly/ScopInfo.h +++ b/polly/include/polly/ScopInfo.h @@ -680,6 +680,9 @@ public: /// nodes. bool isImplicit() const { return !isExplicit(); } + /// @brief Is this MemoryAccess modeling scalar dependences? + bool isScalar() const { return Origin == SCALAR; } + /// @brief Is this MemoryAccess modeling special PHI node accesses? bool isPHI() const { return Origin == PHI; } diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp index c2c73502fd7..3099619f50f 100644 --- a/polly/lib/Analysis/ScopInfo.cpp +++ b/polly/lib/Analysis/ScopInfo.cpp @@ -885,7 +885,7 @@ void ScopStmt::buildAccessRelations() { Ty = ScopArrayInfo::KIND_PHI; else if (Access->isExitPHI()) Ty = ScopArrayInfo::KIND_EXIT_PHI; - else if (Access->isImplicit()) + else if (Access->isScalar()) Ty = ScopArrayInfo::KIND_SCALAR; else Ty = ScopArrayInfo::KIND_ARRAY; |