diff options
author | Usman Nadeem <mnadeem@quicinc.com> | 2024-09-24 08:54:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 08:54:36 -0700 |
commit | d4a38c8ff5c993e14c42895b51a47272fb03a857 (patch) | |
tree | bfc6535a680e01de8b9f1f68b0203f1de74e63a2 /lldb/unittests/ScriptInterpreter/Python | |
parent | d075debc508898d5f365f8e909c54d6f4edada85 (diff) | |
download | llvm-d4a38c8ff5c993e14c42895b51a47272fb03a857.zip llvm-d4a38c8ff5c993e14c42895b51a47272fb03a857.tar.gz llvm-d4a38c8ff5c993e14c42895b51a47272fb03a857.tar.bz2 |
[DFAJumpThreading] Handle select unfolding when user phi is not a dir… (#109511)
…ect successor
Previously the code assumed that the select instruction is defined in a
block that is a direct predecessor of the block where the PHINode uses
it. So, we were hitting an assertion when we tried to access the def
block as an incoming block for the user phi node.
This patch handles that case by using the correct end block and creating
a new phi node that aggregates both the values of the select in that end
block, and then using that new unfolded phi to overwrite the original
user phi node.
Fixes #106083
Change-Id: Ie471994cca232318f74a6e6438efa21e561c2dc0
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions