diff options
| author | Jakub Kuderski <kubak@google.com> | 2019-12-20 16:08:52 -0500 |
|---|---|---|
| committer | Jakub Kuderski <kubak@google.com> | 2019-12-20 16:15:04 -0500 |
| commit | c431c407ebcbbb526f4af93a549fa5b260a9b193 (patch) | |
| tree | 9b1d68931a128f68a2288125ccda17f91e92efc9 /clang/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp | |
| parent | 494b1318ca77927e919bbf9a61749a58553d738c (diff) | |
| download | bcm5719-llvm-c431c407ebcbbb526f4af93a549fa5b260a9b193.tar.gz bcm5719-llvm-c431c407ebcbbb526f4af93a549fa5b260a9b193.zip | |
[InstCombine] Improve infinite loop detection
Summary:
This patch limits the default number of iterations performed by InstCombine. It also exposes a new option that allows to specify how many iterations is considered getting stuck in an infinite loop.
Based on experiments performed on real-world C++ programs, InstCombine seems to perform at most ~8-20 iterations, so treating 1000 iterations as an infinite loop seems like a safe choice. See D71145 for details.
The two limits can be specified via command line options.
Reviewers: spatel, lebedev.ri, nikic, xbolva00, grosser
Reviewed By: spatel
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71673
Diffstat (limited to 'clang/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp')
0 files changed, 0 insertions, 0 deletions

