diff options
| author | Nikita Popov <npopov@redhat.com> | 2024-08-16 12:52:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-16 12:52:57 +0200 |
| commit | 6a84af704f57defd919a4ec2e34b70a48d548719 (patch) | |
| tree | 6cecfcf1e2167704d9c1196cb7543e746217f5ce /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface/ScriptedProcessPythonInterface.cpp | |
| parent | 65390f9d6f0aa5f7bc5125d73337eb658e162d0a (diff) | |
[LAA] Use computeConstantDifference() (#103725)
Use computeConstantDifference() instead of casting getMinusSCEV() to
SCEVConstant. This can be much faster in some cases, because
computeConstantDifference() computes the result without creating new
SCEV expressions.
This improves LTO/ThinLTO compile-time for lencod by more than 10%.
I've verified that computeConstantDifference() does not produce worse
results than the previous code for anything in llvm-test-suite. This
required raising the iteration cutoff to 6. I ended up increasing it to
8 just to be on the safe side (for code outside llvm-test-suite), and
because this doesn't materially affect compile-time anyway (we'll almost
always bail out earlier).
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface/ScriptedProcessPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions
