[CodeGen][AMDGPU] EXTRACT_VECTOR_ELT: input vector element type can differ from outpu...
authorJuan Manuel MARTINEZ CAAMAÑO <juamarti@amd.com>
Fri, 6 Jan 2023 08:45:36 +0000 (09:45 +0100)
committerJuan Manuel MARTINEZ CAAMAÑO <juamarti@amd.com>
Fri, 6 Jan 2023 08:46:02 +0000 (09:46 +0100)
commit543db09b97774ebf3c5da4a7044f1a94d6ba2975
tree5aa8bfb3ea1045a1de90cc6f3e1057e07d48bc4e
parentc8ec751d883d0975a1e34a10013bbe2adf5dccfa
[CodeGen][AMDGPU] EXTRACT_VECTOR_ELT: input vector element type can differ from output type

In function SITargetLowering::performExtractVectorElt,
the output type was not considered which could lead to type mismatches
later.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D139943
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/dagcomb-extract-vec-elt-different-sizes.ll [new file with mode: 0644]