Page MenuHomePhabricator

[CodeGen] Fix warning in changeVectorElementTypeToInteger
AbandonedPublic

Authored by david-arm on May 26 2020, 6:58 AM.

Details

Summary

When creating vectors with MVT::getVectorVT we should be using
getVectorElementCount() instead of getVectorNumElements().

Diff Detail

Event Timeline

david-arm created this revision.May 26 2020, 6:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2020, 6:59 AM
dancgr added a subscriber: dancgr.May 28 2020, 2:43 PM

Hello David, I have this patch here that I was going to upstream (https://reviews.llvm.org/D80746), but I just realized that it is exactly the same as this one.

I just wanted to ask if you think it is OK that we merge it, since is the same line from this patch.

Hi @dancgr, sure I'm happy for you to submit your patch (https://reviews.llvm.org/D80746) instead!

david-arm abandoned this revision.May 31 2020, 11:29 PM