[DependenceInfo] Reset operations counter when setting limit.
authorMichael Kruse <llvm@meinersbur.de>
Fri, 5 Aug 2016 11:31:02 +0000 (11:31 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 5 Aug 2016 11:31:02 +0000 (11:31 +0000)
commitd82222fc1b9175ed0b3c5077e53d559c138c545b
treee16ddd328f5e19ffe022a47d3cc58272723de477
parent75127944b6faa99a5ae216d6ba4c6f82c9f84a13
[DependenceInfo] Reset operations counter when setting limit.

When entering the dependence computation and the max_operations is set, the
operations counter may have already exceeded the counter, thus aborting any ISL
computation from the start. The counter is reset at the end of the dependence
calculation such that a follow-up recomputation might succeed, ie. the success
of the first dependence calculation depends on unrelated ISL operations that
happened before, giving it a disadvantage to the following calculations.

This patch resets the operations counter at the beginning of the dependence
recalculation to not depend on previous actions. Otherwise additional
preprocessing of the Scop that aims to improve its schedulability (eg. DeLICM)
do have the effect that DependenceInfo and hence the scheduling fail more
likely, contraproductive to the goal of said preprocessing.

llvm-svn: 277810
polly/lib/Analysis/DependenceInfo.cpp