[polly] r235271 - Dependences: Allow to disable dependences computeout

Tobias Grosser tobias at grosser.es
Sun Apr 19 00:07:26 PDT 2015


Author: grosser
Date: Sun Apr 19 02:07:26 2015
New Revision: 235271

URL: http://llvm.org/viewvc/llvm-project?rev=235271&view=rev
Log:
Dependences: Allow to disable dependences computeout

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=235271&r1=235270&r2=235271&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/DependenceInfo.cpp (original)
+++ polly/trunk/lib/Analysis/DependenceInfo.cpp Sun Apr 19 02:07:26 2015
@@ -42,7 +42,7 @@ using namespace llvm;
 static cl::opt<int> OptComputeOut(
     "polly-dependences-computeout",
     cl::desc("Bound the dependence analysis by a maximal amount of "
-             "computational steps"),
+             "computational steps (0 means no bound)"),
     cl::Hidden, cl::init(250000), cl::ZeroOrMore, cl::cat(PollyCategory));
 
 static cl::opt<bool> LegalityCheckDisabled(
@@ -232,7 +232,8 @@ void Dependences::calculateDependences(S
   MayWrite = isl_union_map_coalesce(MayWrite);
 
   long MaxOpsOld = isl_ctx_get_max_operations(S.getIslCtx());
-  isl_ctx_set_max_operations(S.getIslCtx(), OptComputeOut);
+  if (OptComputeOut)
+    isl_ctx_set_max_operations(S.getIslCtx(), OptComputeOut);
   isl_options_set_on_error(S.getIslCtx(), ISL_ON_ERROR_CONTINUE);
 
   DEBUG(dbgs() << "Read: " << Read << "\n";





More information about the llvm-commits mailing list