[polly] r283221 - [ScopInfo] Make simplifySCoP() public. NFC.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 4 07:14:34 PDT 2016


Author: meinersbur
Date: Tue Oct  4 09:14:33 2016
New Revision: 283221

URL: http://llvm.org/viewvc/llvm-project?rev=283221&view=rev
Log:
[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.

Modified:
    polly/trunk/include/polly/ScopInfo.h

Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=283221&r1=283220&r2=283221&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Tue Oct  4 09:14:33 2016
@@ -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.




More information about the llvm-commits mailing list