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.
Depends on D144399
Perhaps preferABDSToABSWithNSW? It would be good to add the "nsw" part, as there are other ways to produce ABDS