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. llvm-svn: 22685
This commit is contained in:
parent
d01cf9cfd0
commit
431b8d80bd
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user