From cbdf90b9935ca1fd22dad49c5fd2435ba629e340 Mon Sep 17 00:00:00 2001 From: Jinsong Ji Date: Thu, 27 Jun 2019 19:35:11 +0000 Subject: [PATCH] [PowerPC][NFC] Remove unused (and unsupported) fusion feature bits. FeatureFusion bits was first introduced in https://reviews.llvm.org/rL253724. for add/load integer fusion for P8. The only use of `hasFusion` was https://reviews.llvm.org/rL255319. However, this was removed later in https://reviews.llvm.org/rL280440. So, there is NO any reference to fusion in code now. Leaving it there is misleading and confusing, so remove it for now. We can alwasy add back if we ever support fusion in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364581 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPC.td | 5 +---- lib/Target/PowerPC/PPCSubtarget.cpp | 1 - lib/Target/PowerPC/PPCSubtarget.h | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/Target/PowerPC/PPC.td b/lib/Target/PowerPC/PPC.td index 03522adc529..8e94a2ae15e 100644 --- a/lib/Target/PowerPC/PPC.td +++ b/lib/Target/PowerPC/PPC.td @@ -164,8 +164,6 @@ def FeatureHTM : SubtargetFeature<"htm", "HasHTM", "true", "Enable Hardware Transactional Memory instructions">; def FeatureMFTB : SubtargetFeature<"", "FeatureMFTB", "true", "Implement mftb using the mfspr instruction">; -def FeatureFusion : SubtargetFeature<"fusion", "HasFusion", "true", - "Target supports add/load integer fusion.">; def FeaturePPCPreRASched: SubtargetFeature<"ppc-prera-sched", "UsePPCPreRASchedStrategy", "true", "Use PowerPC pre-RA scheduling strategy">; @@ -233,8 +231,7 @@ def ProcessorFeatures { FeatureMFTB, DeprecatedDST, FeatureTwoConstNR]; list Power8SpecificFeatures = [DirectivePwr8, FeatureP8Altivec, FeatureP8Vector, FeatureP8Crypto, - FeatureHTM, FeatureDirectMove, FeatureICBT, FeaturePartwordAtomic, - FeatureFusion]; + FeatureHTM, FeatureDirectMove, FeatureICBT, FeaturePartwordAtomic]; list Power8FeatureList = !listconcat(Power7FeatureList, Power8SpecificFeatures); list Power9SpecificFeatures = diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp index 0d2786e8443..82f71806e5d 100644 --- a/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/lib/Target/PowerPC/PPCSubtarget.cpp @@ -108,7 +108,6 @@ void PPCSubtarget::initializeEnvironment() { HasDirectMove = false; IsQPXStackUnaligned = false; HasHTM = false; - HasFusion = false; HasFloat128 = false; IsISA3_0 = false; UseLongCalls = false; diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h index a59cbd60618..55fec1cb6d9 100644 --- a/lib/Target/PowerPC/PPCSubtarget.h +++ b/lib/Target/PowerPC/PPCSubtarget.h @@ -131,7 +131,6 @@ protected: bool HasPartwordAtomics; bool HasDirectMove; bool HasHTM; - bool HasFusion; bool HasFloat128; bool IsISA3_0; bool UseLongCalls; @@ -292,7 +291,6 @@ public: } bool hasHTM() const { return HasHTM; } - bool hasFusion() const { return HasFusion; } bool hasFloat128() const { return HasFloat128; } bool isISA3_0() const { return IsISA3_0; } bool useLongCalls() const { return UseLongCalls; } -- 2.40.0