Don't try to extract an i32 from an f64. This
authorDuncan Sands <baldrick@free.fr>
Wed, 12 Mar 2008 20:30:08 +0000 (20:30 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 12 Mar 2008 20:30:08 +0000 (20:30 +0000)
commit25eb043759c23b61769108f78382eb9701c41db2
tree4007f1c5e0c4cb5943b61789e30d2beeb7274432
parent58d74910c6b82e622ecbb57d6644d48fec5a5c0f
Don't try to extract an i32 from an f64.  This
getCopyToParts problem was noticed by the new
LegalizeTypes infrastructure.  In order to avoid
this kind of thing in the future I've added a
check that EXTRACT_ELEMENT is only used with
integers.  Once LegalizeTypes is up and running
most likely BUILD_PAIR and EXTRACT_ELEMENT can
be removed, in favour of using apints instead.

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