summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Option
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2017-08-23 13:29:59 +0000
committerMichael Kruse <llvm@meinersbur.de>2017-08-23 13:29:59 +0000
commit7fac28fa4fcf5271c20ce2cdac128ec2cbb8a7ed (patch)
tree58011040cd7f09ec35956c4328972291502348b4 /llvm/lib/Option
parent99fba1fd528fdd2356c370a081e3f6a2801b0685 (diff)
downloadbcm5719-llvm-7fac28fa4fcf5271c20ce2cdac128ec2cbb8a7ed.tar.gz
bcm5719-llvm-7fac28fa4fcf5271c20ce2cdac128ec2cbb8a7ed.zip
[ScopDetect] Include zero-iteration loops in loop count.
Loop with zero iteration are, syntactically, loops. They have been excluded from the loop counter even for the non-profitable counters. This seems to be unintentially as the sentinel value of '0' minimal iterations does exclude such loops. Fix by never considering the iteration count when the sentinel value of 0 is found. This makes the recently added NumTotalLoops couter redundant with NumLoopsOverall, which now is equivalent. Hence, NumTotalLoops is removed as well. Note: The test case 'ScopDetect/statistics.ll' effectively does not check profitability, because -polly-process-unprofitable is passed to all test cases. llvm-svn: 311551
Diffstat (limited to 'llvm/lib/Option')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud