Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp | ||
---|---|---|
48 | getLegalVectorType / getValidVectorType plz, otherwise it's unclear why you're duplicating standard infra. | |
900 | auto maybeReadType = ... followed by auto readType = *maybeReadType and avoid propagating the FailureOr / ptr changes forward plz. | |
1220 | This is a second different way of doing the same thing, please make it uniform and single entry point. Actually using this check everywhere is less footprint, so please just: if (!VectorType::isValidElementType(a) || !VectorType::isValidElementType(b) ... ) return failure(); everywhere plz and drop the getVectorType altogether. The whole PR should be 5-10 lines of change. |
Thanks for the contribution! It would be great to give more time for other reviewers to chime in. Do you plan to create a new diff for this?
getLegalVectorType / getValidVectorType plz, otherwise it's unclear why you're duplicating standard infra.