[llvm-dev] extract_vector_elt type mismatch?
Matt Arsenault via llvm-dev
llvm-dev at lists.llvm.org
Thu Aug 18 11:06:48 PDT 2016
On 08/18/2016 11:01 AM, Tim Northover wrote:
> On 18 August 2016 at 10:46, Matt Arsenault via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>> I think this is just intended as a quirk for some weird targets that have a
>> legal vector type, but the scalar type itself is not legal, so it requires
>> an implicit extension when extracting it.
> I think it's a pretty common RISC situation. I notice you deprecated
> the mismatching types in r255359, but I don't really see an
> alternative after type-legalization with the current nodes. I suppose
> we could add ISD::EXTRACT_SEXT_VECTOR_ELEMENT and
> ISD::EXTRACT_ZEXT_VECTOR_ELEMENT or something.
>
> Tim.
I think that would be an improvement. I manage to break the mismatched
element case for most every vector combine I've done
-Matt
More information about the llvm-dev
mailing list