Enable gp optimizations by default when available, even when a target triple
authorChris Lattner <sabre@nondot.org>
Fri, 5 Aug 2005 21:25:13 +0000 (21:25 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 5 Aug 2005 21:25:13 +0000 (21:25 +0000)
is available, since the target triple doesn't specify whether to use gpopts
or not.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22685 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCSubtarget.cpp

index 4fae1a2d1de75662787a042c36b8ed6aa5ce0903..3bfa7a6eefe8a1ebe2c90634eb30d7ee4143e338 100644 (file)
@@ -43,6 +43,9 @@ PPCSubtarget::PPCSubtarget(const Module &M)
   const std::string& TT = M.getTargetTriple();
   if (TT.length() > 5) {
     isDarwin = TT.find("darwin") != std::string::npos;
+#if defined(__APPLE__)
+    isGigaProcessor = IsGP();
+#endif
   } else if (TT.empty()) {
 #if defined(_POWER)
     isAIX = true;