This is an archive of the discontinued LLVM Phabricator instance.

[mlir][std] Canonicalize extract_element(tensor_cast).
ClosedPublic

Authored by herhut on Nov 17 2020, 4:59 AM.

Details

Summary

Canonicalize extract_element(tensor_cast(v)) to just extract_element(v).

Diff Detail

Event Timeline

herhut created this revision.Nov 17 2020, 4:59 AM
herhut requested review of this revision.Nov 17 2020, 4:59 AM
ftynse accepted this revision.Nov 17 2020, 5:33 AM
ftynse added inline comments.
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
1976

If you prefer, we sometimes do // clang-format off + // clang-format on and manually format the list of patterns keeping one per line.

This revision is now accepted and ready to land.Nov 17 2020, 5:33 AM
This revision was automatically updated to reflect the committed changes.