[all-commits] [llvm/llvm-project] d66661: [AArch64] Fold swapped sub/SUBS conditions (#121412)

David Green via All-commits all-commits at lists.llvm.org
Sat Jan 18 04:13:13 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d6666168041e5c2b66205d307a371bab03fb72fb
      https://github.com/llvm/llvm-project/commit/d6666168041e5c2b66205d307a371bab03fb72fb
  Author: David Green <david.green at arm.com>
  Date:   2025-01-18 (Sat, 18 Jan 2025)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
    M llvm/test/CodeGen/AArch64/adds_cmn.ll
    M llvm/test/CodeGen/AArch64/csel-subs-swapped.ll

  Log Message:
  -----------
  [AArch64] Fold swapped sub/SUBS conditions (#121412)

This fold already exists in a couple places (DAG and CGP), where an
icmps operands are swapped to allow CSE with a sub. They do not handle
constants though. This patch adds an AArch64 version that can be more
precise.



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