File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
mlir/lib/Conversion/VectorToLLVM Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1153,6 +1153,7 @@ class VectorTransferConversion : public ConvertToLLVMPattern {
1153
1153
if (memrefVectorElementType.getElementType () !=
1154
1154
xferOp.getVectorType ().getElementType ())
1155
1155
return failure ();
1156
+ #ifndef NDEBUG
1156
1157
// Check that memref vector type is a suffix of 'vectorType.
1157
1158
unsigned memrefVecEltRank = memrefVectorElementType.getRank ();
1158
1159
unsigned resultVecRank = xferOp.getVectorType ().getRank ();
@@ -1165,6 +1166,7 @@ class VectorTransferConversion : public ConvertToLLVMPattern {
1165
1166
assert (memrefVecEltShape[i] != resultVecShape[rankOffset + i] &&
1166
1167
" memref vector element shape should match suffix of vector "
1167
1168
" result shape." );
1169
+ #endif // ifndef NDEBUG
1168
1170
}
1169
1171
1170
1172
// 1. Get the source/dst address as an LLVM vector pointer.
You can’t perform that action at this time.
0 commit comments