diff options
author | James Newling <james.newling@gmail.com> | 2025-07-21 14:12:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-21 11:12:50 -0700 |
commit | abce4e9ad0481ef33812e72a1bae53d77ddd9cce (patch) | |
tree | d200c7f50d3516d54978cce3d584fc3fc78f4504 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 881b3fdfad30ca7e945fab4c68822f6bdecf06af (diff) | |
download | llvm-abce4e9ad0481ef33812e72a1bae53d77ddd9cce.zip llvm-abce4e9ad0481ef33812e72a1bae53d77ddd9cce.tar.gz llvm-abce4e9ad0481ef33812e72a1bae53d77ddd9cce.tar.bz2 |
[mlir][vector] Folder: shape_cast(extract) -> extract (#146368)
In a later PR more shape_cast ops will appear. Specifically, broadcasts that
just prepend ones become shape_cast ops (i.e. volume preserving broadcasts
are canonicalized to shape_casts). This PR ensures that broadcast-like
shape_cast ops fold at least as well as broadcast ops.
This is done by modifying patterns that target broadcast ops, to target
'broadcast-like' ops. No new patterns are added, the patterns that exist
are just made to match on shape_casts where appropriate.
This PR also includes minor code simplifications: use
`isBroadcastableTo` to simplify `ExtractOpFromBroadcast` and simplify
how broadcast dims are detected in `foldExtractFromBroadcast`. These are
NFC.
---------
Co-authored-by: Andrzej WarzyĆski <andrzej.warzynski@gmail.com>
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions