
In FoldArithToVectorOuterProduct pattern, static cast to vector type causes assertion when a scalar type was encountered. It seems the author meant to have a dyn_cast instead. This NFC patch handles it by using dyn_cast.
Multi-Level Intermediate Representation
See https://mlir.llvm.org/ for more information.