[polly] r261993 - Coalesce Read/Write/MayWrite right after we collected them. NFC

Hongbin Zheng via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 26 01:47:08 PST 2016


Author: ether
Date: Fri Feb 26 03:47:08 2016
New Revision: 261993

URL: http://llvm.org/viewvc/llvm-project?rev=261993&view=rev
Log:
Coalesce Read/Write/MayWrite right after we collected them. NFC

Modified:
    polly/trunk/lib/Analysis/DependenceInfo.cpp

Modified: polly/trunk/lib/Analysis/DependenceInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/DependenceInfo.cpp?rev=261993&r1=261992&r2=261993&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/DependenceInfo.cpp (original)
+++ polly/trunk/lib/Analysis/DependenceInfo.cpp Fri Feb 26 03:47:08 2016
@@ -129,6 +129,10 @@ static void collectInfo(Scop &S, isl_uni
 
   *StmtSchedule =
       isl_union_map_intersect_params(*StmtSchedule, S.getAssumedContext());
+
+  *Read = isl_union_map_coalesce(*Read);
+  *Write = isl_union_map_coalesce(*Write);
+  *MayWrite = isl_union_map_coalesce(*MayWrite);
 }
 
 /// @brief Fix all dimension of @p Zero to 0 and add it to @p user
@@ -293,10 +297,6 @@ void Dependences::calculateDependences(S
     }
   }
 
-  Read = isl_union_map_coalesce(Read);
-  Write = isl_union_map_coalesce(Write);
-  MayWrite = isl_union_map_coalesce(MayWrite);
-
   long MaxOpsOld = isl_ctx_get_max_operations(IslCtx.get());
   if (OptComputeOut)
     isl_ctx_set_max_operations(IslCtx.get(), OptComputeOut);




More information about the llvm-commits mailing list