Implement method unsigned getMinVectorRegisterBitWidth() for RISCV
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Should we implement method unsigned getMinVectorRegisterBitWidth() to avoid potential errors?
Is this function just picking the minimum size of vector SLP will use? Do we want that to follow getRegisterBitWidth() or should it be allowed to be lower?
Em, I haven't got a proper test case for this. Without this methed being implemented, the mothed in super class will be called and got a return value of 128.
Oh, I get your point. For RVV, we can use a vector registor fractionally, so minimum size of vector could be less than MinVectorRegisterBitWidth. But I'm not sure whether it is appropriate for a methed naming getMinVectorRegisterBitWidth.
There was a vague suggestion about possibly adding a new getMinVectorizationBitWidth mentioned here https://reviews.llvm.org/D103925
Anyway this patch is probably good as a starting point. LGTM