llvm-6502/lib
Duncan Sands edfcf598fa Sometimes (rarely) nodes held in LegalizeTypes
maps can be deleted.  This happens when RAUW
replaces a node N with another equivalent node
E, deleting the first node.  Solve this by
adding (N, E) to ReplacedNodes, which is already
used to remap nodes to replacements.  This means
that deleted nodes are being allowed in maps,
which can be delicate: the memory may be reused
for a new node which might get confused with the
old deleted node pointer hanging around in the
maps, so detect this and flush out maps if it
occurs (ExpungeNode).  The expunging operation
is expensive, however it never occurs during
a llvm-gcc bootstrap or anywhere in the nightly
testsuite.  It occurs three times in "make check":
Alpha/illegal-element-type.ll,
PowerPC/illegal-element-type.ll and
X86/mmx-shift.ll.  If expunging proves to be too
expensive then there are other more complicated
ways of solving the problem.
In the normal case this patch adds the overhead
of a few more map lookups, which is hopefully
negligable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52214 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-11 11:42:12 +00:00
..
Analysis Expose a public interface to this pass. 2008-06-05 23:45:18 +00:00
Archive Create archives with the same permissions are ar. 2008-05-24 05:42:29 +00:00
AsmParser AsmParser support for immediate constant aggregate values. 2008-06-09 14:45:02 +00:00
Bitcode Better test for availability of __gnu_cxx::stdio_filebuf. 2008-06-11 10:46:24 +00:00
CodeGen Sometimes (rarely) nodes held in LegalizeTypes 2008-06-11 11:42:12 +00:00
Debugger Make these variables static. 2008-04-23 23:15:23 +00:00
ExecutionEngine Add #includes to make some dependencies explicit. 2008-05-23 20:40:06 +00:00
Linker use 'continue' to make the function linker simpler. When linking a strong 2008-06-09 07:47:34 +00:00
Support As comments said, for negative value, the arithmetic 2008-06-05 13:27:38 +00:00
System Provide hooks for libgcc symbols' address resolution inside lli on mingw32. 2008-06-06 07:20:07 +00:00
Target CPPBackend support for extractvalue and insertvalue. 2008-06-09 14:12:10 +00:00
Transforms Clarify a comment. 2008-06-11 09:00:12 +00:00
VMCore Re-apply 52002, allowing the verifier to accept non-MRV struct return 2008-06-09 21:26:13 +00:00
Makefile