This is an archive of the discontinued LLVM Phabricator instance.

[mlir][ArmSME] Use vector.reduction add in zero test
ClosedPublic

Authored by c-rhodes on Jul 31 2023, 8:28 AM.

Details

Summary

The inner 1d vector row can be summed with vector.reduction op. The
earlier mul reduction can't be updated similarly as it currently crashes
in the backend with:

LLVM ERROR: Expanding reductions for scalable vectors is undefined.

Diff Detail

Event Timeline

c-rhodes created this revision.Jul 31 2023, 8:28 AM
Herald added a project: Restricted Project. · View Herald Transcript
c-rhodes requested review of this revision.Jul 31 2023, 8:28 AM
awarzynski accepted this revision.Jul 31 2023, 11:01 AM

LGTM, ta!

The earlier mul reduction can't be updated similarly as it currently crashes
in the backend with:

LLVM ERROR: Expanding reductions for scalable vectors is undefined.

We should probably report this somewhere.

This revision is now accepted and ready to land.Jul 31 2023, 11:01 AM
dcaballe accepted this revision.Jul 31 2023, 10:43 PM
This revision was automatically updated to reflect the committed changes.