Skip to content

Commit dfdce9b

Browse files
ylzsxyuxuanchen1997
authored andcommitted
[LoongArch] Remove experimental auto-vec feature. (#100070)
Summary: Currently, automatic vectorization will be enabled with `-mlsx/-mlasx` enabled. Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251073
1 parent de28325 commit dfdce9b

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

llvm/lib/Target/LoongArch/LoongArch.td

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ def FeatureRelax
106106
: SubtargetFeature<"relax", "HasLinkerRelax", "true",
107107
"Enable Linker relaxation">;
108108

109-
// Experimental auto vectorization
110-
def FeatureAutoVec
111-
: SubtargetFeature<"auto-vec", "HasExpAutoVec", "true",
112-
"Experimental auto vectorization">;
113-
114109
// Floating point approximation operation
115110
def FeatureFrecipe
116111
: SubtargetFeature<"frecipe", "HasFrecipe", "true",

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)