This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Allow constant exprs in pack/unpack propagation through elementwise
ClosedPublic

Authored by qedawkins on Feb 20 2023, 6:14 PM.

Details

Summary

The pack/unpack propagation patterns currently assume all map results
for non-scalar arguments are AffineDimExprs, leading to crashes when the
input operand being packed has constant expressions.

Diff Detail

Event Timeline

qedawkins created this revision.Feb 20 2023, 6:14 PM
qedawkins requested review of this revision.Feb 20 2023, 6:14 PM
hanchung accepted this revision.Feb 21 2023, 2:30 PM

LGTM

mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp
167

We can use dimExpr.getPosition() here

This revision is now accepted and ready to land.Feb 21 2023, 2:30 PM
qedawkins updated this revision to Diff 499299.Feb 21 2023, 2:43 PM

rebase and use getPosition

This revision was landed with ongoing or failed builds.Feb 21 2023, 10:35 PM
This revision was automatically updated to reflect the committed changes.