Unverified Commit 1f07bfb9 authored by Spenser Bauman's avatar Spenser Bauman Committed by GitHub
Browse files

[mlir][tensor] Implement folding logic for size 0 tensor and memref ops (#90814)



Implement folding and rewrite logic to eliminate no-op tensor and memref
operations. This handles two specific cases:

1. tensor.insert_slice operations where the size of the inserted slice
is known to be 0.
2. memref.copy operations where either the source or target memrefs are
known to be emtpy.

Co-authored-by: default avatarSpenser Bauman <sabauma@fastmail>
parent 250c39cd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment