Skip to content

Commit fe9ad8d

Browse files
committed
Resolve review comments
1 parent 8a7e6d6 commit fe9ad8d

File tree

3 files changed

+372
-1
lines changed

3 files changed

+372
-1
lines changed

llvm/include/llvm/Analysis/TargetTransformInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1812,9 +1812,10 @@ class TargetTransformInfo {
18121812
unsigned ChainSizeInBytes,
18131813
VectorType *VecTy) const;
18141814

1815-
/// \returns True if the targets prefers fixed width vectorization if the
1815+
/// \returns True if the target prefers fixed width vectorization if the
18161816
/// loop vectorizer's cost-model assigns an equal cost to the fixed and
18171817
/// scalable version of the vectorized loop.
1818+
/// \p IsEpilogue is true if the decision is for the epilogue loop.
18181819
LLVM_ABI bool preferFixedOverScalableIfEqualCost(bool IsEpilogue) const;
18191820

18201821
/// \returns True if target prefers SLP vectorizer with altermate opcode

llvm/test/Transforms/LoopVectorize/AArch64/sve-epilog-vect-vscale-tune.ll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
; RUN: opt -S -passes=loop-vectorize,instsimplify -force-vector-interleave=1 \
22
; RUN: -mcpu=neoverse-v1 -sve-tail-folding=disabled < %s | FileCheck %s --check-prefix=CHECK-EPILOG
33
; RUN: opt -S -passes=loop-vectorize,instsimplify -force-vector-interleave=1 \
4+
; RUN: -mcpu=neoverse-v1 -sve-tail-folding=disabled -sve-prefer-fixed-over-scalable-if-equal=false \
5+
; RUN: < %s | FileCheck %s --check-prefix=CHECK-EPILOG-PREFER-SCALABLE
6+
; RUN: opt -S -passes=loop-vectorize,instsimplify -force-vector-interleave=1 \
47
; RUN: -mcpu=neoverse-v2 < %s | FileCheck %s --check-prefix=CHECK-EPILOG-V2
58
; RUN: opt -S -passes=loop-vectorize,instsimplify -force-vector-interleave=1 \
69
; RUN: -mcpu=cortex-x2 < %s | FileCheck %s --check-prefix=CHECK-NO-EPILOG
@@ -12,6 +15,10 @@ define void @foo(ptr noalias nocapture readonly %p, ptr noalias nocapture %q, i6
1215
; CHECK-EPILOG: vec.epilog.vector.body:
1316
; CHECK-EPILOG: load <8 x i16>
1417

18+
; CHECK-EPILOG-PREFER-SCALABLE: vec.epilog.ph:
19+
; CHECK-EPILOG-PREFER-SCALABLE: vec.epilog.vector.body:
20+
; CHECK-EPILOG-PREFER-SCALABLE: load <vscale x 4 x i16>
21+
1522
; The epilogue loop gets vectorised vscale x 2 x i16 wide.
1623
; CHECK-EPILOG-V2: vec.epilog.ph:
1724
; CHECK-EPILOG-V2: vec.epilog.vector.body:

0 commit comments

Comments
 (0)