summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorpvanhout <pierre.vanhoutryve@amd.com>2023-05-22 11:15:15 +0200
committerpvanhout <pierre.vanhoutryve@amd.com>2023-05-22 13:40:26 +0200
commitfa87dd52d4327ad7313e924c1f27b9321fb253d2 (patch)
tree007162523aafd6d78a6429c747761cac0897d58d /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parent61346ed51fdab0314694f3dbbf6563bc2cc9cde2 (diff)
[AMDGPU] Handle multiple occurences of an incoming value in break large PHIs
We naively broke all incoming values, assuming they'd be unique. However it's not illegal to have multiple occurences of, e.g. `[BB0, V0]` in a PHI node. What's illegal though is having the same basic block multiple times but with different values, and it's exactly what the transform caused. This broke in some rare applications where the pattern arised. Now we cache the `BasicBlock, Value` pairs we're breaking so we can reuse the values and preserve this invariant. Solves SWDEV-399460 Reviewed By: #amdgpu, rovka Differential Revision: https://reviews.llvm.org/D151069
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions