mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 05:06:45 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3f749b166
commit
5da58851e5
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user