mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-12 10:52:38 +00:00
[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. llvm-svn: 298077
This commit is contained in:
parent
490fccb170
commit
5842dee251
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user