Fix UpdateNodeOperands so that it does CSE of calls
authorDuncan Sands <baldrick@free.fr>
Mon, 27 Oct 2008 15:30:53 +0000 (15:30 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 27 Oct 2008 15:30:53 +0000 (15:30 +0000)
commit0dc4045bd27c177416745d2e72277b0a92c3ab83
tree06b95dd103ea70d5b1595b40abc9d6f25fecde7d
parent20f04e9fdd437712b323661e5041fd88431185b3
Fix UpdateNodeOperands so that it does CSE of calls
(and a bunch of other node types).  While there, I
added a doNotCSE predicate and used it to reduce code
duplication (some of the duplicated code was wrong...).
This fixes ARM/cse-libcalls.ll when using LegalizeTypes.

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