This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Vector] Use create_mask in transfer mask materializations
ClosedPublic

Authored by jsetoain on Feb 24 2022, 7:22 AM.

Details

Summary

Currently, the transfer mask is materialized by generating the vector
comparison: [offset + 0, .., offset + length - 1] < [dim, .., dim]

A better alternative is to materialize the transfer mask by using the
operation: vector.create_mask (dim - offset), which will generate
simpler code and compose better with scalable vectors.

Diff Detail

Event Timeline

jsetoain created this revision.Feb 24 2022, 7:22 AM
jsetoain requested review of this revision.Feb 24 2022, 7:22 AM
jsetoain updated this revision to Diff 411128.Feb 24 2022, 7:30 AM

Clean-up patch

ftynse accepted this revision.Mar 7 2022, 4:03 AM
This revision is now accepted and ready to land.Mar 7 2022, 4:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2022, 4:03 AM