[all-commits] [llvm/llvm-project] 329674: [AArch64][InstCombine] Combine add with [su]adalp ...

Gaëtan Bossu via All-commits all-commits at lists.llvm.org
Thu Jul 2 06:23:52 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 329674f4f4dd08905f456eb7eceeb49770152a38
      https://github.com/llvm/llvm-project/commit/329674f4f4dd08905f456eb7eceeb49770152a38
  Author: Gaëtan Bossu <gaetan.bossu at arm.com>
  Date:   2026-07-02 (Thu, 02 Jul 2026)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    A llvm/test/Transforms/InstCombine/AArch64/sve-pairwise-add-long.ll

  Log Message:
  -----------
  [AArch64][InstCombine] Combine add with [su]adalp intrinsics (#204796)

It can happen that the [su]adalp uses a zero accumulator and its result
is used as an operand into an ADD instruction. We can fold those.

add(adalp(%pred, zeroinitializer, %in), %acc)
-->
adalp(%pred, %acc, %in)



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