forked from OSchip/llvm-project
[mlir][Linalg] Fix crash when tileSizeComputationFunction is left unspecified
This commit is contained in:
parent
5f7a4d8d05
commit
4643fd27c8
|
@ -472,6 +472,9 @@ Optional<TiledLinalgOp> static tileLinalgOpImpl(
|
|||
b.setInsertionPoint(op);
|
||||
ScopedContext scope(b, op.getLoc());
|
||||
|
||||
if (!options.tileSizeComputationFunction)
|
||||
return llvm::None;
|
||||
|
||||
// Enforce the convention that "tiling by zero" skips tiling a particular
|
||||
// dimension. This convention is significantly simpler to handle instead of
|
||||
// adjusting affine maps to account for missing dimensions.
|
||||
|
|
Loading…
Reference in New Issue