summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/file_handle
diff options
context:
space:
mode:
authorSam Parker <sam.parker@arm.com>2018-03-26 09:29:42 +0000
committerSam Parker <sam.parker@arm.com>2018-03-26 09:29:42 +0000
commit53a423a41702c6d8dca9a5eff9c0c034a5492a9b (patch)
tree892f67cc6d641f1ce17706115806c624ec05012f /lldb/packages/Python/lldbsuite/test/python_api/file_handle
parenta6ce78ece17db120e21c99a4728d08a9374609f9 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud