diff options
author | Zhaoshi Zheng <zhaoshiz@quicinc.com> | 2019-09-26 21:40:27 +0000 |
---|---|---|
committer | Zhaoshi Zheng <zhaoshiz@quicinc.com> | 2019-09-26 21:40:27 +0000 |
commit | 1128fa09249126449270f807a25a1e40db87d8c5 (patch) | |
tree | 8a12bb097eff7a2d11aa899537552bb6a6955e18 /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp | |
parent | 7dfb095b882d6b3ec42c7b9c4391ce3e30d37375 (diff) | |
download | bcm5719-llvm-1128fa09249126449270f807a25a1e40db87d8c5.tar.gz bcm5719-llvm-1128fa09249126449270f807a25a1e40db87d8c5.zip |
[Unroll] Do NOT unroll a loop with small runtime upperbound
For a runtime loop if we can compute its trip count upperbound:
Don't unroll if:
1. loop is not guaranteed to run either zero or upperbound iterations; and
2. trip count upperbound is less than UnrollMaxUpperBound
Unless user or TTI asked to do so.
If unrolling, limit unroll factor to loop's trip count upperbound.
Differential Revision: https://reviews.llvm.org/D62989
Change-Id: I6083c46a9d98b2e22cd855e60523fdc5a4929c73
llvm-svn: 373017
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions