Fix PR5558, which was caused by a wrong fix for PR3393 (see commit 63048),
authorDuncan Sands <baldrick@free.fr>
Fri, 20 Nov 2009 10:45:10 +0000 (10:45 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 20 Nov 2009 10:45:10 +0000 (10:45 +0000)
commitc088ae8b84bfcdefb57efafb022430312bddf638
tree2c4e186b664fff021e6fca692ba86cae25cdb5b2
parent5da15364b9aa63161678252e49a6c475d619a81e
Fix PR5558, which was caused by a wrong fix for PR3393 (see commit 63048),
which was an expensive checks failure due to a bug in the checking.  This
patch in essence reverts the original fix for PR3393, and refixes it by a
tweak to the way expensive checking is done.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89454 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypes.h
test/CodeGen/Generic/2009-11-20-NewNode.ll [new file with mode: 0644]