For such cases we can generate a shape cast to simplify the IR.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, thanks!
mlir/lib/Dialect/Vector/IR/VectorOps.cpp | ||
---|---|---|
4794–4802 | [optional] I prefer early-return because that usually saves us some level of indents; returning success() is more common to me. E.g., |
mlir/lib/Dialect/Vector/IR/VectorOps.cpp | ||
---|---|---|
4794–4802 | We have two cases here; it's a bit hard to organize them as early returns for both. So I'd just keep the existing way for consistency between the two. |
mlir/lib/Dialect/Vector/IR/VectorOps.cpp | ||
---|---|---|
4794–4802 | SG, thanks! |
[optional] I prefer early-return because that usually saves us some level of indents; returning success() is more common to me. E.g.,