[ForwardOpTree] Test the max operations quota.
commit7ae18c93fbeb510fd7da3c13a5e9950672dac72a
authorMichael Kruse <llvm@meinersbur.de>
Mon, 18 Sep 2017 17:43:50 +0000 (18 17:43 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Mon, 18 Sep 2017 17:43:50 +0000 (18 17:43 +0000)
tree8d824846c07e548957d0dee946bfd7a765a03667
parent00523ee8a1487f568a31ce7ea6b3d97362dd8174
[ForwardOpTree] Test the max operations quota.

cl::opt<unsigned long> is not specialized and hence the option
-polly-optree-max-ops impossible to use.

Replace by supported option cl::opt<unsigned>.

Also check for an error state when computing the written value, which
happens when the quota runs out.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@313546 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transform/ForwardOpTree.cpp
lib/Transform/ZoneAlgo.cpp
test/ForwardOpTree/noforward_outofquota.ll [new file with mode: 0644]