File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
test/Transforms/LoopVectorize/AArch64 Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -233,9 +233,11 @@ void AArch64Subtarget::initializeProperties(bool HasMinSize) {
233233 PrefLoopAlignment = Align (32 );
234234 MaxBytesForLoopAlignment = 16 ;
235235 break ;
236+ case NeoverseV2:
237+ MaxInterleaveFactor = 4 ;
238+ LLVM_FALLTHROUGH;
236239 case NeoverseN2:
237240 case NeoverseN3:
238- case NeoverseV2:
239241 case NeoverseV3:
240242 PrefFunctionAlignment = Align (16 );
241243 PrefLoopAlignment = Align (32 );
Original file line number Diff line number Diff line change 55; RUN: opt -passes=loop-vectorize -mtriple=arm64-apple-macos -mcpu=apple-a14 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
66; RUN: opt -passes=loop-vectorize -mtriple=arm64-apple-macos -mcpu=apple-a15 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
77; RUN: opt -passes=loop-vectorize -mtriple=arm64-apple-macos -mcpu=apple-a16 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
8+ ; RUN: opt -passes=loop-vectorize -mtriple=arm64 -mcpu=neoverse-v2 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
89
910; Tests for selecting interleave counts for loops with loads and stores.
1011
Original file line number Diff line number Diff line change 55; RUN: opt -passes=loop-vectorize -mtriple=arm64-apple-macos -mcpu=apple-a14 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
66; RUN: opt -passes=loop-vectorize -mtriple=arm64-apple-macos -mcpu=apple-a15 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
77; RUN: opt -passes=loop-vectorize -mtriple=arm64-apple-macos -mcpu=apple-a16 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
8+ ; RUN: opt -passes=loop-vectorize -mtriple=arm64 -mcpu=neoverse-v2 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
89
910; Tests for selecting the interleave count for loops with reductions.
1011
You can’t perform that action at this time.
0 commit comments