[all-commits] [llvm/llvm-project] 39ae86: [AArch64TTI] AArch64 supports NT vector stores thr...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Jan 22 17:13:53 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 39ae86ab72d706704ea70f85aa82c623cd99219d
      https://github.com/llvm/llvm-project/commit/39ae86ab72d706704ea70f85aa82c623cd99219d
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-01-22 (Wed, 22 Jan 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
    A llvm/test/Transforms/LoopVectorize/AArch64/nontemporal-load-store.ll

  Log Message:
  -----------
  [AArch64TTI] AArch64 supports NT vector stores through STNP.

This patch adds a custom implementation of isLegalNTStore to AArch64TTI
that supports vector types that can be directly stored by STNP. Note
that the implementation may not catch all valid cases (e.g. because the
vector is a multiple of 256 and could be broken down to multiple valid 256 bit
stores), but it is good enough for LV to vectorize loops with NT stores,
as LV only passes in a vector with 2 elements to check. LV seems to also
be the only user of isLegalNTStore.

We should also do the same for NT loads, but before that we need to
ensure that we properly lower LDNP of vectors, similar to D72919.

Reviewers: dmgreen, samparker, t.p.northover, ab

Reviewed By: dmgreen

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




More information about the All-commits mailing list