return nullptr;
}
// 3. vectorize constant.
- if (auto constant = dyn_cast<ConstantOp>(operand.getDefiningOp())) {
+ if (auto constant = dyn_cast_or_null<ConstantOp>(operand.getDefiningOp())) {
return vectorizeConstant(
op, constant,
VectorType::get(state->strategy->vectorSizes, operand.getType()));
auto memRef = store.getMemRef();
auto value = store.getValueToStore();
auto vectorValue = vectorizeOperand(value, opInst, state);
+ if (!vectorValue)
+ return nullptr;
ValueRange mapOperands = store.getMapOperands();
SmallVector<Value, 8> indices;