Eliminate the loop that searches through each of the operands
authorDan Gohman <gohman@apple.com>
Sun, 25 Jan 2009 16:29:12 +0000 (16:29 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 25 Jan 2009 16:29:12 +0000 (16:29 +0000)
commit399461095b033438d1f5863cd0d6f82a616f74dc
tree14d303492e2cced7ae294690e4b16295255902e3
parent74692c0d65d92865674ff8e0491a21b98950284a
Eliminate the loop that searches through each of the operands
of each use in the SelectionDAG ReplaceAllUses* functions. Thanks
to Chris for spotting this opportunity.

Also, factor out code from all 5 of the ReplaceAllUses* functions
into AddNonLeafNodeToCSEMaps, which is now renamed
AddModifiedNodeToCSEMaps to more accurately reflect its purpose.

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