When operand is a subview we don't infer in_bounds and some default cases (e.g case in the tests) will crash with operand is NULL when converting to LLVM
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Dialect/Vector/VectorTransforms.cpp | ||
|---|---|---|
| 3577–3583 | nit: you could also do this: ArrayAttr inBounds = readOp.in_bounds() ? rewriter.getArrayAttr( readOp.in_boundsAttr().getValue().drop_back(dimsToDrop))
: ArrayAttr() | |
| mlir/test/Dialect/Vector/vector-transfer-collapse-inner-most-dims.mlir | ||
|---|---|---|
| 34–35 | please remove the extra lines | |
nit: you could also do this:
ArrayAttr inBounds = readOp.in_bounds() ? rewriter.getArrayAttr( readOp.in_boundsAttr().getValue().drop_back(dimsToDrop)) : ArrayAttr()