diff options
| author | Michael Kruse <llvm@meinersbur.de> | 2016-10-04 14:14:33 +0000 |
|---|---|---|
| committer | Michael Kruse <llvm@meinersbur.de> | 2016-10-04 14:14:33 +0000 |
| commit | 9116899615479ed458f5d510baa69da6d7398079 (patch) | |
| tree | 4f66bd96ab6de9891869ba02d5301158f030970e | |
| parent | 6203c91eaca6bdd6ce5da354e5ebd91808b00531 (diff) | |
| download | bcm5719-llvm-9116899615479ed458f5d510baa69da6d7398079.tar.gz bcm5719-llvm-9116899615479ed458f5d510baa69da6d7398079.zip | |
[ScopInfo] Make simplifySCoP() public. NFC.
This function may need to be called after the scop construction. The upcoming
DeLICM will use this to cleanup statement that all write accesses have been
removed from.
llvm-svn: 283221
| -rw-r--r-- | polly/include/polly/ScopInfo.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index d584e262b31..5ff5683698f 100644 --- a/polly/include/polly/ScopInfo.h +++ b/polly/include/polly/ScopInfo.h @@ -1752,9 +1752,6 @@ private: /// Add parameter constraints to @p C that imply a non-empty domain. __isl_give isl_set *addNonEmptyDomainConstraints(__isl_take isl_set *C) const; - /// Simplify the SCoP representation - void simplifySCoP(bool AfterHoisting); - /// Return the access for the base ptr of @p MA if any. MemoryAccess *lookupBasePtrAccess(MemoryAccess *MA); @@ -2443,6 +2440,13 @@ public: /// /// @return true if @p Schedule contains extension nodes. static bool containsExtensionNode(__isl_keep isl_schedule *Schedule); + + /// Simplify the SCoP representation. + /// + /// @param AfterHoisting Whether it is called after invariant load hoisting. + /// When true, also removes statements without + /// side-effects. + void simplifySCoP(bool AfterHoisting); }; /// Print Scop scop to raw_ostream O. |

