This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Shape] Allow materializing const shapes of any 1D index tensor
AbandonedPublic

Authored by bkramer on Mar 8 2021, 8:33 AM.

Details

Reviewers
herhut
silvas
Summary

Limiting it to tensor<?xindex> seems unnecessary. This changes some
test expectations that were relying on other folds.

Diff Detail

Event Timeline

bkramer created this revision.Mar 8 2021, 8:33 AM
bkramer requested review of this revision.Mar 8 2021, 8:33 AM
herhut added inline comments.Mar 8 2021, 11:09 AM
mlir/lib/Dialect/Shape/IR/Shape.cpp
108

Why should this produce a shape.const_shape and not a normal tensor constant? With this setup it is not clear which constant operation will be chosen I think.

bkramer abandoned this revision.Mar 8 2021, 12:00 PM

Turned out the thing that motivated this change was a bug elsewhere. dropping.