Dan pointed out checking whether a node is dead by comparing its opcode to ISD::DELET...
authorEvan Cheng <evan.cheng@apple.com>
Sat, 9 Jan 2010 00:21:08 +0000 (00:21 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 9 Jan 2010 00:21:08 +0000 (00:21 +0000)
commit54e146b935123d3d325e8eb30c2e1f2eca3377ac
tree98ec275ffa281d16c404c3423d1e0fbafc8c30b9
parent87563b39370d7adfd42b0f531409ff9bc2bfcc56
Dan pointed out checking whether a node is dead by comparing its opcode to ISD::DELETED_NODE is not safe. Use a DAGUpdateListener to remove dead nodes from work list instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93031 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp