1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

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:
Chris Lattner 2005-08-05 21:25:13 +00:00
parent 19959252ea
commit 79095d3416

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;