Use getVectorElementCount() instead of getVectorNumElements().
The code changed in this patch is covered by an existing test:
CodeGen/AArch64/sve-intrinsics-contiguous-prefetches.ll
Differential D80615
[CodeGen] Fix warnings in getPackedVectorTypeFromPredicateType david-arm on May 27 2020, 2:28 AM. Authored by
Details Use getVectorElementCount() instead of getVectorNumElements(). CodeGen/AArch64/sve-intrinsics-contiguous-prefetches.ll
Diff Detail
Event TimelineComment Actions HI @david-arm , I will not hold this patch if you disagree on the nit, but I think you should remove the tests as they seem to duplicate something that is already tested. Ciao, Francesco
|
NIT:
We could be explicit here on the PredVT that we want to use and swap the statements as follows:
I am also wondering whether we can remove at all the idea of using EC.Min in this code and just use TypeSize. Something like the following:
Seems like a good thing to get rid of the EC.Min here?