[all-commits] [llvm/llvm-project] 8ae884: [ARM][MVE] Match canonical saturating negation pat...

Ties Stuij via All-commits all-commits at lists.llvm.org
Tue Aug 4 05:33:12 PDT 2026


  Branch: refs/heads/release/23.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ae884c1285b17f0145f084303dbb937c9a37209
      https://github.com/llvm/llvm-project/commit/8ae884c1285b17f0145f084303dbb937c9a37209
  Author: Ties Stuij <ties.stuij at arm.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M llvm/lib/Target/ARM/ARMInstrMVE.td
    M llvm/test/CodeGen/Thumb2/vqabs.ll
    M llvm/test/CodeGen/Thumb2/vqneg.ll

  Log Message:
  -----------
  [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.

(cherry picked from commit c99e6752b9f9e1867af88c07ee44f837bc6e4311)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list