This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Fix crash in vector.reduction canonicalization
ClosedPublic

Authored by ThomasRaoux on Jul 12 2022, 3:47 PM.

Details

Summary

since vector.reduce support accumulator in all the cases remove the
assert assuming old definition.

Move helper to avoid circular dependency.

Diff Detail

Event Timeline

ThomasRaoux created this revision.Jul 12 2022, 3:47 PM
Herald added a project: Restricted Project. · View Herald Transcript
ThomasRaoux requested review of this revision.Jul 12 2022, 3:47 PM
ThomasRaoux edited the summary of this revision. (Show Details)Jul 12 2022, 3:47 PM
antiagainst accepted this revision.Jul 12 2022, 4:12 PM
antiagainst added inline comments.
mlir/test/Dialect/Vector/canonicalize.mlir
1625

s/arg1/B/ ?

This revision is now accepted and ready to land.Jul 12 2022, 4:12 PM
ThomasRaoux added inline comments.
mlir/test/Dialect/Vector/canonicalize.mlir
1625

good catch, thanks!

This revision was landed with ongoing or failed builds.Jul 12 2022, 4:15 PM
This revision was automatically updated to reflect the committed changes.