Avoids generating a legalization assert for the case where a vector type is legal
authorMon P Wang <wangmp@apple.com>
Wed, 4 Feb 2009 19:38:14 +0000 (19:38 +0000)
committerMon P Wang <wangmp@apple.com>
Wed, 4 Feb 2009 19:38:14 +0000 (19:38 +0000)
commite5ab34e05d701da042619bf540046efc3c7bc41f
tree3ff8b0facb675fb07cf7e0b32dfef686b6823030
parent1845d990411933f6bf6f92b28913cc7383a66835
Avoids generating a legalization assert for the case where a vector type is legal
but when legalizing the operation, we split the vector type and generate a library
call whose type needs to be promoted. For example, X86 with SSE on but MMX off,
a divide v2i64 will be scalarized to 2 calls to a library using i64.

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