Skip to content

Commit 62c4815

Browse files
committed
Revert "[ARM][AArch64] generate subtarget feature flags"
This reverts commit dd8b0fe.
1 parent fe6057a commit 62c4815

File tree

7 files changed

+808
-181
lines changed

7 files changed

+808
-181
lines changed

llvm/lib/Target/AArch64/AArch64.td

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ def FeatureZCRegMove : SubtargetFeature<"zcm", "HasZeroCycleRegMove", "true",
154154
def FeatureZCZeroingGP : SubtargetFeature<"zcz-gp", "HasZeroCycleZeroingGP", "true",
155155
"Has zero-cycle zeroing instructions for generic registers">;
156156

157-
// It is generally beneficial to rewrite "fmov s0, wzr" to "movi d0, #0".
158-
// as movi is more efficient across all cores. Newer cores can eliminate
159-
// fmovs early and there is no difference with movi, but this not true for
160-
// all implementations.
161157
def FeatureNoZCZeroingFP : SubtargetFeature<"no-zcz-fp", "HasZeroCycleZeroingFP", "false",
162158
"Has no zero-cycle zeroing instructions for FP registers">;
163159

@@ -172,7 +168,7 @@ def FeatureZCZeroingFPWorkaround : SubtargetFeature<"zcz-fp-workaround",
172168
"The zero-cycle floating-point zeroing instruction has a bug">;
173169

174170
def FeatureStrictAlign : SubtargetFeature<"strict-align",
175-
"RequiresStrictAlign", "true",
171+
"StrictAlign", "true",
176172
"Disallow all unaligned memory "
177173
"access">;
178174

@@ -194,24 +190,24 @@ def FeaturePredictableSelectIsExpensive : SubtargetFeature<
194190
"Prefer likely predicted branches over selects">;
195191

196192
def FeatureCustomCheapAsMoveHandling : SubtargetFeature<"custom-cheap-as-move",
197-
"HasCustomCheapAsMoveHandling", "true",
193+
"CustomAsCheapAsMove", "true",
198194
"Use custom handling of cheap instructions">;
199195

200196
def FeatureExynosCheapAsMoveHandling : SubtargetFeature<"exynos-cheap-as-move",
201-
"HasExynosCheapAsMoveHandling", "true",
197+
"ExynosAsCheapAsMove", "true",
202198
"Use Exynos specific handling of cheap instructions",
203199
[FeatureCustomCheapAsMoveHandling]>;
204200

205201
def FeaturePostRAScheduler : SubtargetFeature<"use-postra-scheduler",
206202
"UsePostRAScheduler", "true", "Schedule again after register allocation">;
207203

208204
def FeatureSlowMisaligned128Store : SubtargetFeature<"slow-misaligned-128store",
209-
"IsMisaligned128StoreSlow", "true", "Misaligned 128 bit stores are slow">;
205+
"Misaligned128StoreIsSlow", "true", "Misaligned 128 bit stores are slow">;
210206

211207
def FeatureSlowPaired128 : SubtargetFeature<"slow-paired-128",
212-
"IsPaired128Slow", "true", "Paired 128 bit loads and stores are slow">;
208+
"Paired128IsSlow", "true", "Paired 128 bit loads and stores are slow">;
213209

214-
def FeatureSlowSTRQro : SubtargetFeature<"slow-strqro-store", "IsSTRQroSlow",
210+
def FeatureSlowSTRQro : SubtargetFeature<"slow-strqro-store", "STRQroIsSlow",
215211
"true", "STR of Q register with register offset is slow">;
216212

217213
def FeatureAlternateSExtLoadCVTF32Pattern : SubtargetFeature<

0 commit comments

Comments
 (0)