Generalize one of the SelectionDAG::ReplaceAllUsesWith overloads
authorDan Gohman <gohman@apple.com>
Wed, 15 Apr 2009 20:06:30 +0000 (20:06 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 15 Apr 2009 20:06:30 +0000 (20:06 +0000)
commitc23e4968790395053f3f52aeb3342637fcaafdbf
tree06f07aff463d54c1589d673d164fa1a83a0ad3d2
parentac9e7da69c3fe26c6496f5093a953c2841df7a29
Generalize one of the SelectionDAG::ReplaceAllUsesWith overloads
to support replacing a node with another that has a superset of
the result types. Use this instead of calling
ReplaceAllUsesOfValueWith for each value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69209 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/DAGISelHeader.h
include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp