llvm-project
e38392b1 - [AArch64] Transform add(x, abs(y)) -> saba(x, y, 0) (#156615)

Commit
94 days ago
[AArch64] Transform add(x, abs(y)) -> saba(x, y, 0) (#156615) Add a DAGCombine to perform the following transformations: - add(x, abs(y)) -> saba(x, y, 0) - add(x, zext(abs(y))) -> sabal(x, y, 0) As well as being a useful generic transformation, this also fixes an issue where LLVM de-optimises [US]ABA neon ACLE intrinsics into separate ABD+ADD instructions when one of the operands is a zero vector.
Author
Parents
Loading