diff options
author | Ricardo Jesus <rjj@nvidia.com> | 2025-08-06 13:00:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-06 13:00:28 +0100 |
commit | d8f896172da036da99a158331856a85cc328fcab (patch) | |
tree | 63285df6a29d0187c6c10dae675f6ebd761cdb4f /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | |
parent | b242150b075a8a720b00821682a9469258bbcd30 (diff) | |
download | llvm-d8f896172da036da99a158331856a85cc328fcab.zip llvm-d8f896172da036da99a158331856a85cc328fcab.tar.gz llvm-d8f896172da036da99a158331856a85cc328fcab.tar.bz2 |
[AArch64] Improve lowering of scalar abs(sub(a, b)). (#151180)
This patch avoids a comparison against zero when lowering abs(sub(a, b))
patterns, instead reusing the condition codes generated by a subs of the
operands directly.
For example, currently:
```
sxtb w8, w0
sub w8, w8, w1, sxtb
cmp w8, #0
cneg w0, w8, mi
```
becomes:
```
sxtb w8, w0
subs w8, w8, w1, sxtb
cneg w0, w8, mi
```
Together with #151177, this should handle the remaining patterns in
#118413.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
0 files changed, 0 insertions, 0 deletions