[ScopInfo/PruneUnprofitable] Move default profitability check.
commit8808dde4d7ccee23045b95f6ad6c1c1c3036134a
authorMichael Kruse <llvm@meinersbur.de>
Fri, 17 Mar 2017 13:10:05 +0000 (17 13:10 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 17 Mar 2017 13:10:05 +0000 (17 13:10 +0000)
treed2aa7879ad5d502681dfbfc44dfafe462be2130e
parent9539ced5b8ab9755dfa946f6af7ed88dad827e91
[ScopInfo/PruneUnprofitable] Move default profitability check.

In the previous default ScopInfo applied the profitability heuristic for
scalar accesses (-polly-unprofitable-scalar-accs=true) and the
-polly-prune-unprofitable was disabled by default
(-polly-enable-prune-unprofitable=false) as that pruning was already done.

This changes switches the defaults to -polly-unprofitable-scalar-accs=true
-polly-enable-prune-unprofitable=false such that the scalar access
heuristic check is done by the pass. This allows passes between ScopInfo
and PruneUnprofitable to optimize away scalar accesses.

Without enabling such intermediate passes, there is no change in
behaviour of profitability checks in a PassManagerBuilder built
pass chain, but it allows us to cover this configuration with the
buildbots.

Suggested-by: Tobias Grosser <tobias@grosser.es>
git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@298081 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScopInfo.cpp
lib/Support/RegisterPasses.cpp