Enable gp optimizations by default when available, even when a target triple
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
diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp
index 4fae1a2..3bfa7a6 100644
--- a/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -43,6 +43,9 @@
   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;