[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Aug 5 14:25:24 PDT 2005



Changes in directory llvm/lib/Target/PowerPC:

PowerPCSubtarget.cpp updated: 1.1 -> 1.2
---
Log message:

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.


---
Diffs of the changes:  (+3 -0)

 PowerPCSubtarget.cpp |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp:1.1 llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp:1.2
--- llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp:1.1	Thu Aug  4 02:12:08 2005
+++ llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp	Fri Aug  5 16:25:13 2005
@@ -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;






More information about the llvm-commits mailing list