Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp | ||
---|---|---|
1014 | Is there not a way to directly check isScalable on the type without going through getTypeAllocSize? |
llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp | ||
---|---|---|
1014 | Looks like we're missing isScalableVectorTy, it should be there |
llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp | ||
---|---|---|
1014 | I guess I was trying to be future proof. However, currently scalable vectors cannot be in arrays and struct support is purely in register and thus cannot be indexed via getelementptr. If this changes then the same TypeSize error will be triggered as was the case for the scenario this patch fixes. |
llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp | ||
---|---|---|
1014 | I don't see how that could change. Even then there should be a predicate for that. I'd prefer to stick to a direct type check |
Is there not a way to directly check isScalable on the type without going through getTypeAllocSize?