[polly] r201997 - Cloog: Compute simple hulls during code generation

Tobias Grosser tobias at grosser.es
Sun Feb 23 14:39:38 PST 2014


Author: grosser
Date: Sun Feb 23 16:39:37 2014
New Revision: 201997

URL: http://llvm.org/viewvc/llvm-project?rev=201997&view=rev
Log:
Cloog: Compute simple hulls during code generation

Sven suggested to use this simpler code generation strategy as the convex_hull
computation is apparently rather inefficient. We do not have a test case that
shows a difference, but, in case we find a test case where this makes a
difference, we can reconsider our decission.

Modified:
    polly/trunk/lib/CodeGen/Cloog.cpp

Modified: polly/trunk/lib/CodeGen/Cloog.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/Cloog.cpp?rev=201997&r1=201996&r2=201997&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/Cloog.cpp (original)
+++ polly/trunk/lib/CodeGen/Cloog.cpp Sun Feb 23 16:39:37 2014
@@ -146,6 +146,9 @@ void Cloog::buildCloogOptions() {
   Options->save_domains = 1;
   Options->noscalars = 1;
 
+  // Compute simple hulls to reduce code generation time.
+  Options->sh = 1;
+
   // The last loop depth to optimize should be the last scattering dimension.
   // CLooG by default will continue to split the loops even after the last
   // scattering dimension. This splitting is problematic for the schedules





More information about the llvm-commits mailing list