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
This commit is contained in:
Chris Lattner 2005-08-05 21:25:13 +00:00
parent 7f9b4e9044
commit ba25365140

View 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;