aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/IRObjectFile.cpp
diff options
context:
space:
mode:
authorRicardo Jesus <rjj@nvidia.com>2025-08-06 13:00:28 +0100
committerGitHub <noreply@github.com>2025-08-06 13:00:28 +0100
commitd8f896172da036da99a158331856a85cc328fcab (patch)
tree63285df6a29d0187c6c10dae675f6ebd761cdb4f /llvm/lib/Object/IRObjectFile.cpp
parentb242150b075a8a720b00821682a9469258bbcd30 (diff)
downloadllvm-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 'llvm/lib/Object/IRObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions