This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Fix warnings in getVectorElementCount()
ClosedPublic

Authored by david-arm on Jun 16 2020, 4:23 AM.

Details

Summary

In EVT::getVectorElementCount() when the type is not simple we
should return getExtendedVectorElementCount() from the function
instead of constructing the ElementCount object manually.

I discovered this warning in an existing test:

test/CodeGen/AArch64/sve-intrinsics-loads.ll

Diff Detail

Event Timeline

david-arm created this revision.Jun 16 2020, 4:23 AM
Herald added a project: Restricted Project. · View Herald Transcript
fpetrogalli accepted this revision.Jun 16 2020, 12:31 PM
This revision is now accepted and ready to land.Jun 16 2020, 12:31 PM
This revision was automatically updated to reflect the committed changes.