diff options
author | Sam Parker <sam.parker@arm.com> | 2018-03-26 09:29:42 +0000 |
---|---|---|
committer | Sam Parker <sam.parker@arm.com> | 2018-03-26 09:29:42 +0000 |
commit | 53a423a41702c6d8dca9a5eff9c0c034a5492a9b (patch) | |
tree | 892f67cc6d641f1ce17706115806c624ec05012f /lldb/packages/Python/lldbsuite/test/python_api/file_handle | |
parent | a6ce78ece17db120e21c99a4728d08a9374609f9 (diff) | |
download | bcm5719-llvm-53a423a41702c6d8dca9a5eff9c0c034a5492a9b.tar.gz bcm5719-llvm-53a423a41702c6d8dca9a5eff9c0c034a5492a9b.zip |
[IRCE] Enable increasing loops of variable bounds
CanBeMin is currently used which will report true for any unknown
values, but often a check is performed outside the loop which covers
this situation:
for (int i = 0; i < N; ++i)
...
if (N > 0)
for (int i = 0; i < N; ++i)
...
So I've add 'LoopGuardedAgainstMin' which reports whether N is
greater than the minimum value which then allows loop with a variable
loop count to be optimised. I've also moved the increasing bound
checking into its own function and replaced SumCanReachMax is another
isLoopEntryGuardedByCond function.
llvm-svn: 328480
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/file_handle')
0 files changed, 0 insertions, 0 deletions