diff options
| author | Rachel Craik <rcraik@ca.ibm.com> | 2020-02-10 13:14:59 -0500 |
|---|---|---|
| committer | Rachel Craik <rcraik@ca.ibm.com> | 2020-02-10 13:22:35 -0500 |
| commit | 1f5542006502784e21e1a832221ff8cb56c7dbd2 (patch) | |
| tree | bd1867117b8d6afb360b46bcd4378ee6bdc84165 /lldb/test/API/python_api/module_section/TestModuleAndSection.py | |
| parent | 92e267a94dc4272511be674062f8a3e8897b7083 (diff) | |
[LoopCacheAnalysis]: Add support for negative stride
LoopCacheAnalysis currently assumes the loop will be iterated over in
a forward direction. This patch addresses the issue by using the
absolute value of the stride when iterating backwards.
Note: this patch will treat negative and positive array access the
same, resulting in the same cost being calculated for single and
bi-directional access patterns. This should be improved in a
subsequent patch.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D73064
Diffstat (limited to 'lldb/test/API/python_api/module_section/TestModuleAndSection.py')
0 files changed, 0 insertions, 0 deletions
