aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCSubtarget.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-02 18:33:05 +0000
committerChris Lattner <sabre@nondot.org>2005-09-02 18:33:05 +0000
commit1e9de3ed2db440fac99e5cc85b7d98b0a23a2727 (patch)
tree56863209cdd0f0952ccfce1101fdb3e424fe6f46 /lib/Target/PowerPC/PPCSubtarget.cpp
parent446a4eaee5471b81c83fa449bf4dd1f5e14c3914 (diff)
Decouple fsqrt from gpul optimizations, implementing fsqrt.ll.
Remove the -enable-gpopt option which is subsumed by feature flags. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp
index 2c1b7839a5..0efc1c152d 100644
--- a/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -25,11 +25,10 @@ namespace llvm {
PPCTargetArg(cl::desc("Force generation of code for a specific PPC target:"),
cl::values(
clEnumValN(TargetAIX, "aix", " Enable AIX codegen"),
- clEnumValN(TargetDarwin,"darwin"," Enable Darwin codegen"),
+ clEnumValN(TargetDarwin,"darwin",
+ " Enable Darwin codegen"),
clEnumValEnd),
cl::location(PPCTarget), cl::init(TargetDefault));
- cl::opt<bool> EnableGPOPT("enable-gpopt", cl::Hidden,
- cl::desc("Enable optimizations for GP cpus"));
}
enum PowerPCFeature {
@@ -126,7 +125,8 @@ PPCSubtarget::PPCSubtarget(const Module &M, const std::string &FS)
SubtargetFeatures::Parse(FS, CPU,
PowerPCSubTypeKV, PowerPCSubTypeKVSize,
PowerPCFeatureKV, PowerPCFeatureKVSize);
- IsGigaProcessor = (Bits & PowerPCFeatureGPUL) != 0;
+ IsGigaProcessor = (Bits & PowerPCFeatureGPUL ) != 0;
+ HasFSQRT = (Bits & PowerPCFeatureFSqrt) != 0;
// Set the boolean corresponding to the current target triple, or the default
// if one cannot be determined, to true.
@@ -140,7 +140,4 @@ PPCSubtarget::PPCSubtarget(const Module &M, const std::string &FS)
IsDarwin = true;
#endif
}
-
- // If GP opts are forced on by the commandline, do so now.
- if (EnableGPOPT) IsGigaProcessor = true;
}