diff options
author | Fedor Sergeev <fedor.sergeev@azul.com> | 2018-11-16 21:16:43 +0000 |
---|---|---|
committer | Fedor Sergeev <fedor.sergeev@azul.com> | 2018-11-16 21:16:43 +0000 |
commit | 2e3e224e715eeb85ca9640e19ce14cd0bd4f3f6b (patch) | |
tree | 1703008da9443ad1291a6f2fc8ed5928d3ad144d /lldb/packages/Python/lldbsuite/test/expression_command/options/foo.cpp | |
parent | d1840e5383a9751c534fd3715ab24a497bc54295 (diff) | |
download | bcm5719-llvm-2e3e224e715eeb85ca9640e19ce14cd0bd4f3f6b.tar.gz bcm5719-llvm-2e3e224e715eeb85ca9640e19ce14cd0bd4f3f6b.zip |
[SimpleLoopUnswitch] adding cost multiplier to cap exponential unswitch with
We need to control exponential behavior of loop-unswitch so we do not get
run-away compilation.
Suggested solution is to introduce a multiplier for an unswitch cost that
makes cost prohibitive as soon as there are too many candidates and too
many sibling loops (meaning we have already started duplicating loops
by unswitching).
It does solve the currently known problem with compile-time degradation
(PR 39544).
Tests are built on top of a recently implemented CHECK-COUNT-<num>
FileCheck directives.
Reviewed By: chandlerc, mkazantsev
Differential Revision: https://reviews.llvm.org/D54223
llvm-svn: 347097
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/options/foo.cpp')
0 files changed, 0 insertions, 0 deletions