This is an archive of the discontinued LLVM Phabricator instance.

[mlir] vector.multi_reduction canonicalizes to vector.shape_cast (or vector.extract, if the result is a scalar) only if all reduction dimensions are of size 1
ClosedPublic

Authored by vmurali on Oct 5 2022, 4:54 PM.

Diff Detail

Event Timeline

vmurali created this revision.Oct 5 2022, 4:54 PM
vmurali requested review of this revision.Oct 5 2022, 4:54 PM
dcaballe accepted this revision.Oct 5 2022, 5:04 PM
dcaballe added inline comments.
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
337

it might be worth asserting that the type is actually a scalar

This revision is now accepted and ready to land.Oct 5 2022, 5:04 PM