You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…er (#18863)
This is unsupported by upstream and can lead to a compiler error.
llvm/llvm-project#112994
Progress towards: #18858
---------
Signed-off-by: Nirvedh <nirvedh@gmail.com>
It is reasonable for memref.collapse_shape to require contiguity. Its semantics is to collapse multiple dimensions into a single dimension. If the collapsed dimensions are not contiguous, the resulting dimension cannot be described by a single stride. In your scenario, where you only want to eliminate dimensions with a shape of 1, a rank-reduced subview or a direct reinterpret_cast operation is more recommended.
Eliasj42
pushed a commit
to iree-org/iree
that referenced
this issue
Oct 31, 2024
…er (#18863)
This is unsupported by upstream and can lead to a compiler error.
llvm/llvm-project#112994
Progress towards: #18858
---------
Signed-off-by: Nirvedh <nirvedh@gmail.com>
Signed-off-by: Elias Joseph <eljoseph@amd.com>
Take this example
This is a correct op however we will get
The reason is the verifier uses this function
https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp#L2416
which checks if the src and result strides match as a proof of contiguous collapse but that doesnt seem necessary?
The text was updated successfully, but these errors were encountered: