llvm-project
c99e6752 - [ARM][MVE] Match canonical saturating negation patterns (#213085)

Commit
105 days ago
[ARM][MVE] Match canonical saturating negation patterns (#213085) InstCombine pull request https://github.com/llvm/llvm-project/pull/194519 canonicalized the saturating negation idiom to an llvm.ssub.sat operation. For the ARM backend we only recognized the original select and subtract pattern, causing vector absolute values to expand to VQSUB plus a compare and select instead of VQABS. In this patch we teach the VQABS and VQNEG patterns to recognize this ssub.sat form.
Author
Parents
Loading