forked from OSchip/llvm-project
[mlir] Change verification order to prevent null dereference
Differential Revision: https://reviews.llvm.org/D100390
This commit is contained in:
parent
096857426e
commit
d80178f7c1
|
@ -2556,13 +2556,13 @@ LogicalResult mlir::vector::splitFullAndPartialTransfer(
|
|||
"Expected splitFullAndPartialTransferPrecondition to hold");
|
||||
auto xferReadOp = dyn_cast<vector::TransferReadOp>(xferOp.getOperation());
|
||||
|
||||
if (xferReadOp.mask())
|
||||
return failure();
|
||||
|
||||
// TODO: add support for write case.
|
||||
if (!xferReadOp)
|
||||
return failure();
|
||||
|
||||
if (xferReadOp.mask())
|
||||
return failure();
|
||||
|
||||
OpBuilder::InsertionGuard guard(b);
|
||||
if (Operation *sourceOp = xferOp.source().getDefiningOp())
|
||||
b.setInsertionPointAfter(sourceOp);
|
||||
|
|
Loading…
Reference in New Issue