[polly] r298077 - [ScopInfo] Add option to not add parameter bounds to context [NFC]
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 17 06:00:53 PDT 2017
Author: grosser
Date: Fri Mar 17 08:00:53 2017
New Revision: 298077
URL: http://llvm.org/viewvc/llvm-project?rev=298077&view=rev
Log:
[ScopInfo] Add option to not add parameter bounds to context [NFC]
For experiments it is sometimes helpful to provide parameter bound information
to polly and to not use these parameter bounds for simplification.
Add a new option "-polly-ignore-parameter-bounds" which does precisely this.
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=298077&r1=298076&r2=298077&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Mar 17 08:00:53 2017
@@ -147,6 +147,12 @@ static cl::opt<bool>
cl::desc("Do not take inbounds assumptions at all"),
cl::Hidden, cl::init(false), cl::cat(PollyCategory));
+static cl::opt<bool> PollyIgnoreParamBounds(
+ "polly-ignore-parameter-bounds",
+ cl::desc(
+ "Do not add parameter bounds and do no gist simplify sets accordingly"),
+ cl::Hidden, cl::init(false), cl::cat(PollyCategory));
+
static cl::opt<bool> PollyPreciseFoldAccesses(
"polly-precise-fold-accesses",
cl::desc("Fold memory accesses to modele more possible delinearizations "
@@ -2103,6 +2109,9 @@ void Scop::addParameterBounds() {
}
void Scop::realignParams() {
+ if (PollyIgnoreParamBounds)
+ return;
+
// Add all parameters into a common model.
isl_space *Space = isl_space_params_alloc(getIslCtx(), ParameterIds.size());
More information about the llvm-commits
mailing list