Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/TargetLoweringBase.cpp | ||
---|---|---|
954 | I'd prefer just making people write out isPowerOf2_32(EC.Min). This sort of operation should be rare, and I'd prefer to spell out what it actually means. | |
968 | I'm not sure how you expect this assertion to work out. For the current set of defined MVTs, it might work for SVE, but this will explode as soon as someone adds MVTs for a new target, or tries to add support for a target that doesn't have f16 vectors, or we query this on a target that doesn't support scalable vectors. There's also the larger problem of how legalization should work if we run into a scalable vector with an illegal element type. Not sure what the right answer is there. | |
978–979 | At this point, the element count is known to be a power of two; maybe it would be simpler to work with the element types here? Those are never scalable, so it's more obvious that NextPowerOf2 does something sane. |
I'd prefer just making people write out isPowerOf2_32(EC.Min). This sort of operation should be rare, and I'd prefer to spell out what it actually means.