diff options
| author | Vladimir Radosavljevic <129192835+vladimirradosavljevic@users.noreply.github.com> | 2024-10-10 16:05:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-10 18:05:42 +0400 |
| commit | dabb0ddbd7a7229855156c61df1d35ad845361ac (patch) | |
| tree | 9ba861e7a715be2a9b9684abf22efeb6cb9dff1e /lldb/packages/Python/lldbsuite/test/gdbclientutils.py | |
| parent | 0a0f100a70583725428ec317138b09f935a2b9bb (diff) | |
| download | llvm-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
