[polly] r216084 - [Fix] isl usage errors in ScheduleOptimizer

Johannes Doerfert doerfert at cs.uni-saarland.de
Wed Aug 20 10:15:34 PDT 2014


Author: jdoerfert
Date: Wed Aug 20 12:15:34 2014
New Revision: 216084

URL: http://llvm.org/viewvc/llvm-project?rev=216084&view=rev
Log:
[Fix] isl usage errors in ScheduleOptimizer

Modified:
    polly/trunk/lib/Transform/ScheduleOptimizer.cpp

Modified: polly/trunk/lib/Transform/ScheduleOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/ScheduleOptimizer.cpp?rev=216084&r1=216083&r2=216084&view=diff
==============================================================================
--- polly/trunk/lib/Transform/ScheduleOptimizer.cpp (original)
+++ polly/trunk/lib/Transform/ScheduleOptimizer.cpp Wed Aug 20 12:15:34 2014
@@ -344,12 +344,12 @@ isl_map *IslScheduleOptimizer::getPrevec
   // DimToVectorize to the point loop at the innermost dimension.
   for (int i = 0; i < ScheduleDimensions; i++) {
     c = isl_equality_alloc(isl_local_space_copy(LocalSpace));
-    isl_constraint_set_coefficient_si(c, isl_dim_in, i, -1);
+    c = isl_constraint_set_coefficient_si(c, isl_dim_in, i, -1);
 
     if (i == DimToVectorize)
-      isl_constraint_set_coefficient_si(c, isl_dim_out, PointDimension, 1);
+      c = isl_constraint_set_coefficient_si(c, isl_dim_out, PointDimension, 1);
     else
-      isl_constraint_set_coefficient_si(c, isl_dim_out, i, 1);
+      c = isl_constraint_set_coefficient_si(c, isl_dim_out, i, 1);
 
     TilingMap = isl_map_add_constraint(TilingMap, c);
   }





More information about the llvm-commits mailing list