[Hexagon] Use legalized type for extracted elements in scalarizeShuffle
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 12 Sep 2018 20:58:48 +0000 (20:58 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 12 Sep 2018 20:58:48 +0000 (20:58 +0000)
commitcd95e03cf0617718b31d653813a7a655f5cfad63
tree732bfd89ada837fecc936c3f252c6f24c73881f6
parente45c1eed0c8fcc0070364802634dde5235e6c8f7
[Hexagon] Use legalized type for extracted elements in scalarizeShuffle

Scalarization of a shuffle will break up the source vectors into individual
elements, and use them to assemble the resulting vector. An element type of
a legal vector type may not necessarily be a legal scalar type, so make
sure that the extracted values are extended to a legal scalar type.

llvm-svn: 342079
llvm/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp