summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-10 18:24:37 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-10 18:24:37 +0000
commitb9415c7d9a4fcfba226716cd78618770835ccb81 (patch)
tree024d7962cc184444cbccd170792e3cdf114e5139 /llvm/lib/Target
parent8d4cde2b559a279064cc26bab3369c22324876f5 (diff)
downloadbcm5719-llvm-b9415c7d9a4fcfba226716cd78618770835ccb81.tar.gz
bcm5719-llvm-b9415c7d9a4fcfba226716cd78618770835ccb81.zip
Add a monstrous hack to improve X86ISelDAGToDAG compile time.
- Force NDEBUG on in any Release build. This drops the compile time to ~100s from ~600s, in Release mode. - This may just be a temporary workaround, I don't know the true nature of the gcc-4.2 compile time performance problem. llvm-svn: 86695
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86ISelDAGToDAG.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index 80cf3866ab8..2608365e58b 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -12,6 +12,14 @@
//
//===----------------------------------------------------------------------===//
+// Force NDEBUG on in any optimized build on Darwin.
+//
+// FIXME: This is a huge hack, to work around ridiculously awful compile times
+// on this file with gcc-4.2 on Darwin, in Release mode.
+#if defined(__APPLE__) && defined(__OPTIMIZE__) && !defined(NDEBUG)
+#define NDEBUG
+#endif
+
#define DEBUG_TYPE "x86-isel"
#include "X86.h"
#include "X86InstrBuilder.h"
OpenPOWER on IntegriCloud