[all-commits] [llvm/llvm-project] 272bd5: [AArch64] Fix abs(sub nsw) -> absd
Ricardo Jesus via All-commits
all-commits at lists.llvm.org
Wed Feb 22 01:17:52 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 272bd573dc4a2d0dc3c2102621bec32dd2f2988f
https://github.com/llvm/llvm-project/commit/272bd573dc4a2d0dc3c2102621bec32dd2f2988f
Author: Ricardo Jesus <rjj at nvidia.com>
Date: 2023-02-22 (Wed, 22 Feb 2023)
Changed paths:
M llvm/include/llvm/CodeGen/TargetLowering.h
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/lib/Target/X86/X86ISelLowering.h
M llvm/test/CodeGen/AArch64/sve-saba.ll
Log Message:
-----------
[AArch64] Fix abs(sub nsw) -> absd
This partially reverts a regression introduced in 8f25e382c5b1 for
AArch64 targets. In particular, we restore the logic of `(abs (sub nsw
x, y)) -> abds(x, y)` for all targets except X86, which keeps the logic
introduced in 8f25e382c5b1. See also https://reviews.llvm.org/D142288.
Differential Revision: https://reviews.llvm.org/D144379
More information about the All-commits
mailing list