Fix a warning in getNode() when extracting a subvector from a
concat vector. We can simply replace the call to getVectorNumElements
with getVectorMinNumElements as this follows the defined behaviour
for EXTRACT_SUBVECTOR.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
What regression test does this affect?
LGTM assuming we have appropriate test coverage.
Comment Actions
Hi @efriedma, sorry yes I forgot to mention in the ticket it fixes an existing warnings in these tests:
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set2.c
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_st2.c
when compiling them to assembly instead of LLVM IR. In the case of acle_sve_st2.c my patch actually kills off the last remaining warning so I can add a no-warnings check line.