// are also unlikely to result in good code
static int const MaxConjunctsInDomain = 20;
+static cl::opt<bool> PollyRemarksMinimal(
+ "polly-remarks-minimal",
+ cl::desc("Do not emit remarks about assumptions that are known"),
+ cl::Hidden, cl::ZeroOrMore, cl::init(false), cl::cat(PollyCategory));
+
static cl::opt<bool> ModelReadOnlyScalars(
"polly-analyze-read-only-scalars",
cl::desc("Model read-only scalar values in the scop description"),
bool Scop::trackAssumption(AssumptionKind Kind, __isl_keep isl_set *Set,
DebugLoc Loc, AssumptionSign Sign) {
- if (Sign == AS_ASSUMPTION) {
- if (isl_set_is_subset(Context, Set))
- return false;
+ if (PollyRemarksMinimal) {
+ if (Sign == AS_ASSUMPTION) {
+ if (isl_set_is_subset(Context, Set))
+ return false;
- if (isl_set_is_subset(AssumedContext, Set))
- return false;
- } else {
- if (isl_set_is_disjoint(Set, Context))
- return false;
+ if (isl_set_is_subset(AssumedContext, Set))
+ return false;
+ } else {
+ if (isl_set_is_disjoint(Set, Context))
+ return false;
- if (isl_set_is_subset(Set, InvalidContext))
- return false;
+ if (isl_set_is_subset(Set, InvalidContext))
+ return false;
+ }
}
auto &F = *getRegion().getEntry()->getParent();
config.substitutions.append(('%loadPolly', '-load '
+ config.polly_lib_dir + '/LLVMPolly@LLVM_SHLIBEXT@'
+ ' -polly-process-unprofitable '
+ + ' -polly-remarks-minimal '
))
else:
config.substitutions.append(('%loadPolly', ''
+ ' -polly-process-unprofitable '
+ + ' -polly-remarks-minimal '
))
# Let the main config do the real work.
if not link_polly_into_tools:
newtool += ['-load',os.path.join(polly_lib_dir,'LLVMPolly' + shlibext)]
newtool.append('-polly-process-unprofitable')
+ newtool.append('-polly-remarks-minimal')
elif toolarg == '2>&1':
optstderr = subprocess.STDOUT
else: