summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-12-09 21:33:20 +0000
committerDuncan Sands <baldrick@free.fr>2008-12-09 21:33:20 +0000
commit47d9dcc584cdb7fd645ca1d5c2a0ce363570aeb7 (patch)
tree1377381b42e58700f2935db21eb26448fad758a9 /Makefile.rules
parent20d6f0982ad33818cfa141f80157ac13e36d5550 (diff)
downloadllvm-47d9dcc584cdb7fd645ca1d5c2a0ce363570aeb7.tar.gz
llvm-47d9dcc584cdb7fd645ca1d5c2a0ce363570aeb7.tar.bz2
llvm-47d9dcc584cdb7fd645ca1d5c2a0ce363570aeb7.tar.xz
Fix PR3117: not all nodes being legalized. The
essential problem was that the DAG can contain random unused nodes which were never analyzed. When remapping a value of a node being processed, such a node may become used and need to be analyzed; however due to operands being transformed during analysis the node may morph into a different one. Users of the morphing node need to be updated, and this wasn't happening. While there I added a bunch of documentation and sanity checks, so I (or some other poor soul) won't have to scratch their head over this stuff so long trying to remember how it was all supposed to work next time some obscure problem pops up! The extra sanity checking exposed a few places where invariants weren't being preserved, so those are fixed too. Since some of the sanity checking is expensive, I added a flag to turn it on. It is also turned on when building with ENABLE_EXPENSIVE_CHECKS=1. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 82a108e243..46b1ed2635 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -274,7 +274,7 @@ endif
# appropriate preprocessor symbols.
ifdef ENABLE_EXPENSIVE_CHECKS
BuildMode := $(BuildMode)+Checks
- CPP.Defines += -D_GLIBCXX_DEBUG
+ CPP.Defines += -D_GLIBCXX_DEBUG -DXDEBUG
endif
ifeq ($(ENABLE_PIC),1)