[AArch64][NFC] Refactor the tail-folding option
authorDavid Sherwood <david.sherwood@arm.com>
Thu, 20 Apr 2023 12:34:55 +0000 (12:34 +0000)
committerDavid Sherwood <david.sherwood@arm.com>
Wed, 17 May 2023 08:39:40 +0000 (08:39 +0000)
commit7beb2ca8fa2aed594bb150c4c5734931d6ea4348
tree41e1b2f9f9f9f39a56f660e911f9cb8fc6313116
parent4241ac542d691289f08c3229cfc58641f5659ec7
[AArch64][NFC] Refactor the tail-folding option

This patch does simple refactoring of the tail-folding
option in preparation for enabling tail-folding by
default for neoverse-v1. It adds a default tail-folding
option field to the AArch64Subtarget class that can
be set on a per-CPU.

Differential Revision: https://reviews.llvm.org/D149659
llvm/lib/Target/AArch64/AArch64Subtarget.h
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
llvm/test/Transforms/LoopVectorize/AArch64/sve-tail-folding-option.ll