[all-commits] [llvm/llvm-project] eb6445: [ARM] Convert active.lane.masks to vctp with non-z...

David Green via All-commits all-commits at lists.llvm.org
Wed Mar 29 06:17:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb64450afc96730f9a6ff87c817c34185a307a0f
      https://github.com/llvm/llvm-project/commit/eb64450afc96730f9a6ff87c817c34185a307a0f
  Author: David Green <david.green at arm.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M llvm/lib/Target/ARM/MVETailPredication.cpp
    M llvm/test/CodeGen/Thumb2/LowOverheadLoops/varying-outer-2d-reduction.ll
    M llvm/test/CodeGen/Thumb2/mve-laneinterleaving-reduct.ll
    M llvm/test/CodeGen/Thumb2/mve-tailpred-nonzerostart.ll

  Log Message:
  -----------
  [ARM] Convert active.lane.masks to vctp with non-zero starts

This attempts to expand the logic in the MVETailPredication pass to convert
active lane masks that the vectorizer produces to vctp instructions that the
backend can later turn into tail predicated loops. Especially for addrecs with
non-zero starts that can be created from epilog vectorization. There is some
adjustment to the logic to handle this, moving some of the code to check the
addrec earlier so that we can get the start value. This start value is then
incorporated into the logic of checkin the new vctp is valid, and there is a
newly added check that it is known to be a multiple of the VF as we expect.

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




More information about the All-commits mailing list