diff options
| author | William Junda Huang <williamjhuang@google.com> | 2024-07-29 12:15:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-29 12:15:45 -0400 |
| commit | 2c37334d8dce7ef7d3ecc8c80522fe73010b12cc (patch) | |
| tree | 3f9f29e3b533241c05b9eeeff6cf5fedd992bd3a /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 922558f47446fc732aa474f7bffc3190b4ffab43 (diff) | |
[Transforms] Speed up SSAUpdater::FindExistingPHI (#100281)
In SSAUpdater::FindExistingPHI, the cleanup function is inefficient for
large function with many blocks because it clears the Phi value
reference for every block if not matched for every phi value, even if
most blocks are not modified by CheckIfPHIMatches. This behavior is
particularly slow for large functions because the complexity is Θ(# PHI
* # BBs).
Updated the behavior to only clear modified blocks, which in practice
has a much less complexity because of early exit on PHI mismatch.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
