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) {
233
233
PrefLoopAlignment = Align (32 );
234
234
MaxBytesForLoopAlignment = 16 ;
235
235
break ;
236
+ case NeoverseV2:
237
+ MaxInterleaveFactor = 4 ;
238
+ LLVM_FALLTHROUGH;
236
239
case NeoverseN2:
237
240
case NeoverseN3:
238
- case NeoverseV2:
239
241
case NeoverseV3:
240
242
PrefFunctionAlignment = Align (16 );
241
243
PrefLoopAlignment = Align (32 );
Original file line number Diff line number Diff line change 5
5
; RUN: opt -passes=loop-vectorize -mtriple=arm64-apple-macos -mcpu=apple-a14 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
6
6
; RUN: opt -passes=loop-vectorize -mtriple=arm64-apple-macos -mcpu=apple-a15 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
7
7
; 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
8
9
9
10
; Tests for selecting interleave counts for loops with loads and stores.
10
11
Original file line number Diff line number Diff line change 5
5
; RUN: opt -passes=loop-vectorize -mtriple=arm64-apple-macos -mcpu=apple-a14 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
6
6
; RUN: opt -passes=loop-vectorize -mtriple=arm64-apple-macos -mcpu=apple-a15 -S %s | FileCheck --check-prefix=INTERLEAVE-4 %s
7
7
; 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
8
9
9
10
; Tests for selecting the interleave count for loops with reductions.
10
11
You can’t perform that action at this time.
0 commit comments