[all-commits] [llvm/llvm-project] 4cef24: [ARM] Improve reduction integer min/max costs

David Green via All-commits all-commits at lists.llvm.org
Mon Sep 4 07:47:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cef24a88694241cec5afcc30146b84d0c877d49
      https://github.com/llvm/llvm-project/commit/4cef24a88694241cec5afcc30146b84d0c877d49
  Author: David Green <david.green at arm.com>
  Date:   2023-09-04 (Mon, 04 Sep 2023)

  Changed paths:
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/ARM/reduce-smax.ll
    M llvm/test/Analysis/CostModel/ARM/reduce-smin.ll
    M llvm/test/Analysis/CostModel/ARM/reduce-umax.ll
    M llvm/test/Analysis/CostModel/ARM/reduce-umin.ll

  Log Message:
  -----------
  [ARM] Improve reduction integer min/max costs

This adds some basic smin/smax/umin/umax reduction costs for MVE/NEON, similar
to the existing Add reduction costs. They follow the same style as Add
reductions, but include a higher cost as the costs tend to be dependant on the
element size for vminv/vmaxv. These costs may not be precise, but will be more
inline than the default that extracts each element.




More information about the All-commits mailing list