[all-commits] [llvm/llvm-project] f28f09: [mlir][Vector] Add Broadcast -> CastOp reordering ...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Wed Oct 4 21:27:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f28f09dcf0b4a0b5b56cbce54e997d7c395ce926
      https://github.com/llvm/llvm-project/commit/f28f09dcf0b4a0b5b56cbce54e997d7c395ce926
  Author: MaheshRavishankar <1663364+MaheshRavishankar at users.noreply.github.com>
  Date:   2023-10-04 (Wed, 04 Oct 2023)

  Changed paths:
    M mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
    M mlir/test/Dialect/Vector/sink-vector-broadcast.mlir

  Log Message:
  -----------
  [mlir][Vector] Add Broadcast -> CastOp reordering to SinkVectorBroadcasting patterns. (#68257)

Also fix an issue with sink broadcast across elementwise where
`arith.cmpf` is elementwise, but result type is different. The result
type is not same as the operand type, creating illegal IR.
Similar issue with `vector.fma` which only accepts vector operand types,
while broadcasts can have scalar sources. Sinking broadcast across would
result in an illegal `vector.fma` (with scalar operands).




More information about the All-commits mailing list