[all-commits] [llvm/llvm-project] ff1efe: [AArch64] Combine subtract with borrow to SBC. (#1...

Ricardo Jesus via All-commits all-commits at lists.llvm.org
Mon Nov 10 02:26:27 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff1efe9e7310fb57a96bb27caddc185779120f43
      https://github.com/llvm/llvm-project/commit/ff1efe9e7310fb57a96bb27caddc185779120f43
  Author: Ricardo Jesus <rjj at nvidia.com>
  Date:   2025-11-10 (Mon, 10 Nov 2025)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    A llvm/test/CodeGen/AArch64/sbc.ll

  Log Message:
  -----------
  [AArch64] Combine subtract with borrow to SBC. (#165271)

Specifically, this patch adds the following combines:
  SUB x, (CSET LO, (CMP a, b)) -> SBC x, 0, (CMP a, b)
  SUB (SUB x, y), (CSET LO, (CMP a, b)) -> SBC x, y, (CMP a, b)

The CSET may be preceded by a ZEXT.

Fixes #164748.



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