[all-commits] [llvm/llvm-project] 17a739: [AArch64] Remove redundant f{min, max}nm intrinsics.

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue May 10 12:00:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17a73992dd8ba831e47b29b41d5c20292992a810
      https://github.com/llvm/llvm-project/commit/17a73992dd8ba831e47b29b41d5c20292992a810
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-05-10 (Tue, 10 May 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    M llvm/test/Transforms/InstCombine/AArch64/neon-min-max-intrinsics.ll

  Log Message:
  -----------
  [AArch64] Remove redundant f{min,max}nm intrinsics.

The patch extends AArch64TTIImpl::instCombineIntrinsic to simplify
llvm.aarch64.neon.f{min,max}nm(a, a) -> a.

This helps with simplifying code written using the ACLE, e.g.
see https://godbolt.org/z/jYxsoc89c

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D125234




More information about the All-commits mailing list