This is a bugfix for SelectNodeTo. In certain situations, we could be
authorChris Lattner <sabre@nondot.org>
Thu, 1 Dec 2005 18:00:57 +0000 (18:00 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 1 Dec 2005 18:00:57 +0000 (18:00 +0000)
commitc5e6c649b5856c8f02726de014fa3d415a0cb87b
tree78880672cf4d9f071fcca254c526d8605841a58f
parent6251b36d88b4cb5b256b67f3cd885f2f61f57d54
This is a bugfix for SelectNodeTo.  In certain situations, we could be
selecting a node and use a mix of getTargetNode() and SelectNodeTo.  Because
SelectNodeTo didn't check the CSE maps for a preexisting node and didn't insert
its result into the CSE maps, we would sometimes miss a CSE opportunity.

This is extremely rare, but worth fixing for completeness.

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