llvm-6502/lib/CodeGen/SelectionDAG
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
..
CallingConvLower.cpp Wrap MVT::ValueType in a struct to get type safety 2008-06-06 12:08:01 +00:00
DAGCombiner.cpp Sometimes (rarely) nodes held in LegalizeTypes 2008-06-11 11:42:12 +00:00
LegalizeDAG.cpp Remove comparison methods for MVT. The main cause 2008-06-08 20:54:56 +00:00
LegalizeTypes.cpp Sometimes (rarely) nodes held in LegalizeTypes 2008-06-11 11:42:12 +00:00
LegalizeTypes.h Sometimes (rarely) nodes held in LegalizeTypes 2008-06-11 11:42:12 +00:00
LegalizeTypesExpand.cpp Remove comparison methods for MVT. The main cause 2008-06-08 20:54:56 +00:00
LegalizeTypesFloatToInt.cpp Remove comparison methods for MVT. The main cause 2008-06-08 20:54:56 +00:00
LegalizeTypesPromote.cpp Various tweaks related to apint codegen. No functionality 2008-06-09 15:48:25 +00:00
LegalizeTypesScalarize.cpp Remove comparison methods for MVT. The main cause 2008-06-08 20:54:56 +00:00
LegalizeTypesSplit.cpp Remove comparison methods for MVT. The main cause 2008-06-08 20:54:56 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00
ScheduleDAG.cpp Wrap MVT::ValueType in a struct to get type safety 2008-06-06 12:08:01 +00:00
ScheduleDAGList.cpp Treat EntryToken nodes as "passive" so that they aren't added to the 2008-04-15 01:22:18 +00:00
ScheduleDAGRRList.cpp Wrap MVT::ValueType in a struct to get type safety 2008-06-06 12:08:01 +00:00
SelectionDAG.cpp Sometimes (rarely) nodes held in LegalizeTypes 2008-06-11 11:42:12 +00:00
SelectionDAGISel.cpp CodeGen support for aggregate-value function arguments. 2008-06-09 21:19:23 +00:00
SelectionDAGPrinter.cpp Wrap MVT::ValueType in a struct to get type safety 2008-06-06 12:08:01 +00:00
TargetLowering.cpp Teach isGAPlusOffset to respect a GlobalAddressSDNode's offset 2008-06-09 22:05:52 +00:00