summaryrefslogtreecommitdiffstats
path: root/polly/lib/Support/SCEVAffinator.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-11-13 21:28:07 +0000
committerTobias Grosser <tobias@grosser.es>2016-11-13 21:28:07 +0000
commit5743e8de868cd57adfc4df8dd16b4583c508b0df (patch)
treea7d0b7978c400b8c157fbe69fb5965c083c7ff6e /polly/lib/Support/SCEVAffinator.cpp
parent237158926663f31f2fcdb02cfedc0da19d6437f6 (diff)
downloadbcm5719-llvm-5743e8de868cd57adfc4df8dd16b4583c508b0df.tar.gz
bcm5719-llvm-5743e8de868cd57adfc4df8dd16b4583c508b0df.zip
[SCEVAffinator] Do not scan redundantly for parameters
In r286430 "SCEVValidator: add new parameters resulting from constant extraction" we added functionality to scan for parameters after constant extraction has taken place to ensure newly created parameters are correctly registered. This addition made the already existing registration of parameters redundant. Hence, we remove the corresponding call in this commit. An alternative solution would have been to also perform constant extraction when validating SCEV expressions and to then scan for parameters when validating a SCEV expression. However, as SCEV validation is used during SCoP detection where we want to be especially fast, adding additional functionality on this hot path should be avoided if good alternatives exist. In this case, we can choose to continue to only transform SCEV expression when actually modeling them. As all transformations we perform are expected to not change the validity of the SCEV expressions, this solution seems preferable. Suggested-by: Eli Friedman <efriedma@codeaurora.org> llvm-svn: 286780
Diffstat (limited to 'polly/lib/Support/SCEVAffinator.cpp')
-rw-r--r--polly/lib/Support/SCEVAffinator.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/polly/lib/Support/SCEVAffinator.cpp b/polly/lib/Support/SCEVAffinator.cpp
index 71e27ac4359..43924e86c32 100644
--- a/polly/lib/Support/SCEVAffinator.cpp
+++ b/polly/lib/Support/SCEVAffinator.cpp
@@ -140,9 +140,6 @@ __isl_give PWACtx SCEVAffinator::getPwAff(const SCEV *Expr, BasicBlock *BB) {
} else
NumIterators = 0;
- auto *Scope = getScope();
- S->addParams(getParamsInAffineExpr(&S->getRegion(), Scope, Expr, SE));
-
return visit(Expr);
}
OpenPOWER on IntegriCloud