aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/gdbclientutils.py
diff options
context:
space:
mode:
authorVladimir Radosavljevic <129192835+vladimirradosavljevic@users.noreply.github.com>2024-10-10 16:05:42 +0200
committerGitHub <noreply@github.com>2024-10-10 18:05:42 +0400
commitdabb0ddbd7a7229855156c61df1d35ad845361ac (patch)
tree9ba861e7a715be2a9b9684abf22efeb6cb9dff1e /lldb/packages/Python/lldbsuite/test/gdbclientutils.py
parent0a0f100a70583725428ec317138b09f935a2b9bb (diff)
downloadllvm-dabb0ddbd7a7229855156c61df1d35ad845361ac.zip
llvm-dabb0ddbd7a7229855156c61df1d35ad845361ac.tar.gz
llvm-dabb0ddbd7a7229855156c61df1d35ad845361ac.tar.bz2
[MCP] Skip invalidating def constant regs during forward propagation (#111129)
Before this patch, redundant COPY couldn't be removed for the following case: ``` %reg1 = COPY %const-reg ... // There is a def of %const-reg %reg2 = COPY killed %reg1 ``` where this can be optimized to: ``` ... // There is a def of %const-reg %reg2 = COPY %const-reg ``` This patch allows for such optimization by not invalidating defined constant registers. This is safe, as architectures like AArch64 and RISCV replace a dead definition of a GPR with a zero constant register for certain instructions.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
0 files changed, 0 insertions, 0 deletions