[polly] [polly] Add profitability check for expanded region. (PR #96548)

Huihui Zhang via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 16:58:39 PDT 2024


================
@@ -345,6 +345,20 @@ class ScopDetection {
   /// @return True if region is profitable to optimize, false otherwise.
   bool isProfitableRegion(DetectionContext &Context) const;
 
+  /// Check if an expanded region is profitable to optimize.
+  ///
+  /// An expanded region may include basic blocks with memory accesses that
+  /// are not used in loops of the expanded region. These memory accesses add
----------------
huihzhang wrote:

I have updated the checks to look for memory accesses that are not used in loops.

https://github.com/llvm/llvm-project/pull/96548


More information about the llvm-commits mailing list