[all-commits] [llvm/llvm-project] fed304: [LV][ARM] Improve reduction costmodel for mismatch...

David Green via All-commits all-commits at lists.llvm.org
Fri Dec 10 07:41:11 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fed3041863eba8de6a5ba15a38be38ca8114faf8
      https://github.com/llvm/llvm-project/commit/fed3041863eba8de6a5ba15a38be38ca8114faf8
  Author: David Green <david.green at arm.com>
  Date:   2021-12-10 (Fri, 10 Dec 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/ARM/mve-reductions.ll

  Log Message:
  -----------
  [LV][ARM] Improve reduction costmodel for mismatching extension types.

Given a MLA reduction from two different types (say i8 and i16), we were
previously failing to find the reduction pattern, often making us chose
the lower vector factor. This improves that by using the largest of the
two extension types, allowing us to use the larger VF as the type of the
reduction.

As per https://godbolt.org/z/KP549EEYM the backend handles this
valiantly, leading to better performance.

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




More information about the All-commits mailing list