Fold the operation if the source is a scalar constant or splat constant.
Update transform-patterns-matmul-to-vector.mlir because the broadcast ops are folded in the conversion.
 Differential  D87703  
[mlir][Vector] Add a folder for vector.broadcast Authored by hanchung on Sep 15 2020, 8:31 AM. 
Details Fold the operation if the source is a scalar constant or splat constant. Update transform-patterns-matmul-to-vector.mlir because the broadcast ops are folded in the conversion. 
Diff Detail 
 Event Timeline
 
 
 
 
 
 
 
 Comment Actions Use getVectorType() instead 
 Comment Actions Good to go if River has no more feedback on this.  Please make sure to run the integration tests as well prior to submitting. Also, please feel free to follow-up with the broadcast-broadcast canonicalization. It was not my intention to discourage that, just to make sure you thought and tested through all cases.  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
is this test really required, what vector types would fail?