diff options
| author | David Green <david.green@arm.com> | 2019-03-05 12:12:18 +0000 |
|---|---|---|
| committer | David Green <david.green@arm.com> | 2019-03-05 12:12:18 +0000 |
| commit | 4511f3fa86de9579ded704b66a52492bc7ca08de (patch) | |
| tree | 61793008d5b9fefbac3be9b5a1b7f72c9c1627a8 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 7523f743b4c0bbf59bb9dfd806fce43fbc4eb1ca (diff) | |
[SCEV] Ensure that isHighCostExpansion takes into account what is being divided
A SCEV is not low-cost just because you can divide it by a power of 2. We need to also
check what we are dividing to make sure it too is not a high-code expansion. This helps
to not expand the exit value of certain loops, helping not to bloat the code.
The change in no-iv-rewrite.ll is reverting back to what it was testing before rL194116,
and looks a lot like the other tests in replace-loop-exit-folds.ll.
Differential Revision: https://reviews.llvm.org/D58435
llvm-svn: 355393
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
