Repository navigation
Add patterns to fold tensor.empty with tensor.collapse_expand/shape. - #11847
Conversation
|
I am having a really hard time repro-ing the CI error.... Could we drop the dependence on |
@pzread (for the above). Dont have a specific ask here. Just looking for help with repro-ing the CI error (I cant repro it locally actually) |
If you open the build link (e.g. https://buildkite.com/iree/iree-benchmark-android/builds/5438#0185b8d0-83de-418b-94ca-3b1d5a514246), you can go to Build -> Artifacts -> source-mlir-models to download a zip file of the output after |
|
Oh, the failure is for Linux, which has no artifacts uploaded... |
|
Ah, artifacts. Great! Didnt know that the mlir files are also there. Ill see if that helps repro locally. |
|
Oh, artifacts are there, I just looked in the wrong location |
Yup. Thanks Scott! |
|
This should be fixed when landed with #11952 |
This relands iree-org#11771. Without these patterns, we end up with sequences like ``` %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... ``` which dont get pulled into dispatch regions since tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside. Fixes iree-org#11770
7922ed6 to
a8618e9
Compare
Abbreviated Linux Benchmark Summary@ commit a8618e91a78d72e20af65ff3ed7c41c09d63eb26 (vs. base 9242287e7cca1eab8ab08f4f9f9a52c4cbf91c66) Regressed Latencies 🚩
Regressed Compilation Times 🚩
[Top 3 out of 26 results showed] Improved Compilation Times 🎉
[Top 3 out of 5 results showed] For more information: |
…ree-org#11847) This relands iree-org#11771. Without these patterns, we end up with sequences like %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... which dont get pulled into dispatch regions since tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside. Fixes iree-org#11770
…11847) This relands #11771. Without these patterns, we end up with sequences like %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... which dont get pulled into dispatch regions since tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside. Fixes #11770
…ree-org#11847) This relands iree-org#11771. Without these patterns, we end up with sequences like %0 = tensor.empty ... %1 = tensor.collapse_shape %0 ... which dont get pulled into dispatch regions since tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside. Fixes iree-org#11770
This relands #11771.
Without these patterns, we end up with sequences like
which dont get pulled into dispatch regions since
tensor.collapse_shapes arent pulled into dispatch regions. With the patterns the tensor.collapse_shape fold away, avoiding tensor.empty() being left outside.
Fixes #11770