This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fold shape.eq %a, %a to true
ClosedPublic

Authored by tpopp on Jan 26 2021, 2:19 AM.

Diff Detail

Event Timeline

tpopp created this revision.Jan 26 2021, 2:19 AM
tpopp requested review of this revision.Jan 26 2021, 2:20 AM
tpopp added a comment.Jan 26 2021, 2:20 AM

I don't know if this works with whatever Shape Error types exist these days, so please let me know what you think.

I don't know if this works with whatever Shape Error types exist these days, so please let me know what you think.

This goes back to the comment when the op was added: I don't think it as defined makes sense outside of an assuming region. Errors in and bool out I don't know what the consumer could do with the value, it feels like it would be easy to drop error state there (e.g., errors feed into equals, equals get folded and now errors have no consumer anymore and we DCE those).

As defined, this seems consistent.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 27 2021, 7:22 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.