OSDN Git Service

[SelectionDAG] Teach the vector scalarizer about FP conversions.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 23 Oct 2014 22:49:25 +0000 (22:49 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 23 Oct 2014 22:49:25 +0000 (22:49 +0000)
commit17c1e34c12f9d07e69bd4cb18a71427180233e6a
tree0017cac7bc5b4a4b6bb48b1580fbd92acf5a8122
parent54d95a70745549ab9561eb648ff8e536dee65909
[SelectionDAG] Teach the vector scalarizer about FP conversions.

This adds support for legalization of instructions of the form:

  [fp_conv] <1 x i1> %op to <1 x double>

where fp_conv is one of fpto[us]i, [us]itofp.  This used to assert
because they were simply missing from the vector operand scalarizer.

A similar problem arose in r190830, with trunc instead.

Fixes PR20778.

Differential Revision: http://reviews.llvm.org/D5810

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220533 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
test/CodeGen/AArch64/fpconv-vector-op-scalarize.ll [new file with mode: 0644]