diff options
| author | Tobias Grosser <tobias@grosser.es> | 2015-04-19 07:07:26 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2015-04-19 07:07:26 +0000 |
| commit | 6f8fd8e98f3a8bdb1569921773ac7abce019a886 (patch) | |
| tree | a7f0c117fa734e41599bbbcb903dd22b3bd6104d | |
| parent | a2f65bd047325e19bf05543aae8b195b1fad2a25 (diff) | |
| download | bcm5719-llvm-6f8fd8e98f3a8bdb1569921773ac7abce019a886.tar.gz bcm5719-llvm-6f8fd8e98f3a8bdb1569921773ac7abce019a886.zip | |
Dependences: Allow to disable dependences computeout
llvm-svn: 235271
| -rw-r--r-- | polly/lib/Analysis/DependenceInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/polly/lib/Analysis/DependenceInfo.cpp b/polly/lib/Analysis/DependenceInfo.cpp index 1d83dba5631..8f52220e514 100644 --- a/polly/lib/Analysis/DependenceInfo.cpp +++ b/polly/lib/Analysis/DependenceInfo.cpp @@ -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(Scop &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"; |

