[all-commits] [llvm/llvm-project] 31b8f4: [ARM] Move add(VMLALVA(A, X, Y), B) to VMLALVA(add...

David Green via All-commits all-commits at lists.llvm.org
Wed Jul 14 12:07:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 31b8f400066c3998edc5650300301c1219468ef2
      https://github.com/llvm/llvm-project/commit/31b8f400066c3998edc5650300301c1219468ef2
  Author: David Green <david.green at arm.com>
  Date:   2021-07-14 (Wed, 14 Jul 2021)

  Changed paths:
    M llvm/lib/Target/ARM/ARMISelLowering.cpp
    M llvm/test/CodeGen/Thumb2/mve-vecreduce-mla.ll

  Log Message:
  -----------
  [ARM] Move add(VMLALVA(A, X, Y), B) to VMLALVA(add(A, B), X, Y)

For i64 reductions we currently try and convert add(VMLALV(X, Y), B) to
VMLALVA(B, X, Y), incorporating the addition into the VMLALVA. If we
have an add of an existing VMLALVA, this patch pushes the add up above
the VMLALVA so that it may potentially be simplified further, for
example being folded into another VMLALV.

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




More information about the All-commits mailing list