Skip to content

Commit b9c73c0

Browse files
ylzsxAmi-zhang
authored andcommitted
[LoongArch] Remove experimental auto-vec feature. (llvm#100070)
Currently, automatic vectorization will be enabled with `-mlsx/-mlasx` enabled. (cherry picked from commit 89d1eb6) Change-Id: I5e2ebc81727a280cfb26549aff6b7e6599b2ef56
1 parent 06b7b3c commit b9c73c0

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

llvm/lib/Target/LoongArch/LoongArch.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ def FeatureUAL
105105
def FeatureRelax
106106
: SubtargetFeature<"relax", "HasLinkerRelax", "true",
107107
"Enable Linker relaxation">;
108-
// Experimental auto vectorization
109-
def FeatureAutoVec
110-
: SubtargetFeature<"auto-vec", "HasExpAutoVec", "true",
111-
"Experimental auto vectorization">;
112108

113109
// Floating point approximation operation
114110
def FeatureFrecipe

llvm/lib/Target/LoongArch/LoongArchTargetTransformInfo.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ TypeSize LoongArchTTIImpl::getRegisterBitWidth(
2626
case TargetTransformInfo::RGK_Scalar:
2727
return TypeSize::getFixed(ST->is64Bit() ? 64 : 32);
2828
case TargetTransformInfo::RGK_FixedWidthVector:
29-
if (!ST->hasExpAutoVec())
30-
return DefSize;
3129
if (ST->hasExtLASX())
3230
return TypeSize::getFixed(256);
3331
if (ST->hasExtLSX())

llvm/test/Transforms/LoopVectorize/LoongArch/defaults.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2-
; RUN: opt < %s -passes=loop-vectorize -mtriple loongarch64-linux-gnu -mattr=+lasx,+auto-vec -S | FileCheck %s
2+
; RUN: opt < %s -passes=loop-vectorize -mtriple loongarch64-linux-gnu -mattr=+lasx -S | FileCheck %s
33

44
;; This is a collection of tests whose only purpose is to show changes in the
55
;; default configuration. Please keep these tests minimal - if you're testing

0 commit comments

Comments
 (0)