This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Fix warnings in getZeroExtendInReg
ClosedPublic

Authored by david-arm on May 27 2020, 2:55 AM.

Details

Summary

We should be using getVectorElementCount() to assert that two types
have the same numbers of elements. I encountered the warnings while
compiling this test:

CodeGen/AArch64/sve-intrinsics-ld1.ll

Diff Detail

Event Timeline

david-arm created this revision.May 27 2020, 2:55 AM
c-rhodes accepted this revision.May 29 2020, 3:39 AM

LGTM!

This revision is now accepted and ready to land.May 29 2020, 3:39 AM
This revision was automatically updated to reflect the committed changes.