[Mlir-commits] [mlir] [mlir][vector] Folder: shape_cast(extract) -> extract (PR #146368)

Andrzej WarzyƄski llvmlistbot at llvm.org
Mon Jun 30 09:19:53 PDT 2025


banach-space wrote:

> This PR ensures that broadcast-like shape_cast ops fold at least as well as broadcast ops.

This makes sense and I guess that's what `isBroadcastLike` is introduced for, right? What about all the other changes - quite a lot of code has been removed. Could you quickly summarise?

The old logic was quite convoluted, so replacing that with something simpler (while all tests pass) is great, thanks!

https://github.com/llvm/llvm-project/pull/146368


More information about the Mlir-commits mailing list