[SystemZ] Avoid scalarization of [SU]INT_TO_FP ISD-nodes.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Sat, 14 Mar 2020 09:26:53 +0000 (10:26 +0100)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Mon, 16 Mar 2020 12:07:42 +0000 (13:07 +0100)
commit132f25bcca2e4cdf89df7eb1eff8051dec381e0c
tree836422bc677ecfbb60021cf65966c5a31e17a7ef
parent2878c6693875f841f297bf347963ce26841f9c0a
[SystemZ]  Avoid scalarization of [SU]INT_TO_FP ISD-nodes.

The type legalizer will scalarize vector conversions from integer to floating
point if the source element size is less than that of the result.

This is avoided now by inserting a zero/sign-extension of the source vector
before type legalization.

Review: Ulrich Weigand

Differential revision: https://reviews.llvm.org/D75978
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/lib/Target/SystemZ/SystemZISelLowering.h
llvm/test/CodeGen/SystemZ/vec-move-23.ll [new file with mode: 0644]