From: Chris Lattner Date: Fri, 5 Aug 2005 21:25:13 +0000 (+0000) Subject: Enable gp optimizations by default when available, even when a target triple X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ba253651402f5d12172b3feed8909e28d01b7e1d;p=oota-llvm.git 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 4fae1a2d1de..3bfa7a6eefe 100644 --- a/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/lib/Target/PowerPC/PPCSubtarget.cpp @@ -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;