[all-commits] [llvm/llvm-project] 805451: [MLIR][Vector] Added ToElementsOp::fold for broadc...

Keshav Vinayak Jha via All-commits all-commits at lists.llvm.org
Wed Oct 8 05:14:07 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 805451faedabf0e227b51683d43ebe3093115e58
      https://github.com/llvm/llvm-project/commit/805451faedabf0e227b51683d43ebe3093115e58
  Author: Keshav Vinayak Jha <31160700+keshavvinayak01 at users.noreply.github.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/test/Dialect/Vector/canonicalize.mlir

  Log Message:
  -----------
  [MLIR][Vector] Added ToElementsOp::fold for broadcast->to_elements pattern rewrite. (#160318)

Adds `::fold` for the new `vector.to_elements` op, folding `broadcast`
into `to_elements` or no-op wherever possible.

---------

Signed-off-by: keshavvinayak01 <keshavvinayakjha at gmail.com>
Signed-off-by: Keshav Vinayak Jha <keshavvinayakjha at gmail.com>
Co-authored-by: Jakub Kuderski <kubakuderski at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list