This is an archive of the discontinued LLVM Phabricator instance.

[SVE] Remove getNumElements() calls in visitGetElementPtrInst
ClosedPublic

Authored by david-arm on May 29 2020, 1:52 AM.

Details

Summary

Replace calls to getNumElements() with getElementCount() in order
to avoid warnings for scalable vectors. The warnings were discovered
by this existing test:

test/CodeGen/AArch64/sve-gep.ll

Diff Detail

Event Timeline

david-arm created this revision.May 29 2020, 1:52 AM
Herald added a reviewer: efriedma. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
c-rhodes accepted this revision.May 29 2020, 4:59 AM
This revision is now accepted and ready to land.May 29 2020, 4:59 AM
This revision was automatically updated to reflect the committed changes.