[all-commits] [llvm/llvm-project] ba7d78: [DAG] foldABSToABD - fallback to value tracking if...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Jul 6 00:37:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba7d78ac4597c99e1815646d711cf736ead4f54a
      https://github.com/llvm/llvm-project/commit/ba7d78ac4597c99e1815646d711cf736ead4f54a
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2025-07-06 (Sun, 06 Jul 2025)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/AArch64/abd-combine.ll
    M llvm/test/CodeGen/AArch64/sve-abd.ll
    M llvm/test/CodeGen/RISCV/rvv/abd.ll

  Log Message:
  -----------
  [DAG] foldABSToABD - fallback to value tracking if the (ABS (SUB LHS, RHS)) operands aren't extended (#147053)

ISD::ABDS can be used if the signed subtraction will not overwrap (this
is an extension to handle cases where the NSW flag has been lost)

ISD::ABDU can be used if both operands have at least 1 zero sign bit.

Fixes #147049



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