diff options
| author | Anshil Gandhi <95053726+gandhi56@users.noreply.github.com> | 2025-06-20 18:03:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-20 18:03:54 -0400 |
| commit | 94865edfa85a61dd4ad985d2fb86990a1bba357b (patch) | |
| tree | 766c78003069b3e22b8b6fd58c95549debbb03d1 /lldb/packages/Python/lldbsuite/test/gdbclientutils.py | |
| parent | e6ee2c7c7b36825331b39e221725780167457e6d (diff) | |
| download | llvm-94865edfa85a61dd4ad985d2fb86990a1bba357b.zip llvm-94865edfa85a61dd4ad985d2fb86990a1bba357b.tar.gz llvm-94865edfa85a61dd4ad985d2fb86990a1bba357b.tar.bz2 | |
[Reland][InstCombine] Iterative replacement in PtrReplacer (#144626)
This patch enhances the PtrReplacer as follows:
1. Users are now collected iteratively to be generous on the stack. In the case of PHIs with incoming values which have not yet been visited, they are pushed back into the stack for reconsideration.
2. Replace users of the pointer root in a reverse-postorder traversal, instead of a simpletraversal over the collected users. This reordering ensures that the uses of an instruction are replaced before replacing the instruction itself.
3. During the replacement of PHI, use the same incoming value if it does not have a replacement.
This patch specifically fixes the case when an incoming value of a PHI
is addrspacecasted.
This is a reland of https://github.com/llvm/llvm-project/pull/137215.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
0 files changed, 0 insertions, 0 deletions
