This is an archive of the discontinued LLVM Phabricator instance.

[mlir][arith] Add narrowing patterns to commute more vector ops
ClosedPublic

Authored by kuhar on Apr 29 2023, 3:11 PM.

Details

Summary

This commutes the extension (arith.extsi, arith.extui) over the
following vector ops: vector.broadcast, vector.shape_cast,
vector.transpose, vector.flat_transpose.

I focused on these as I saw them getting created by vector unroll
patterns. Maybe except vector.flat_transpose.

Diff Detail

Event Timeline

kuhar created this revision.Apr 29 2023, 3:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2023, 3:11 PM
kuhar requested review of this revision.Apr 29 2023, 3:11 PM
antiagainst accepted this revision.May 1 2023, 11:18 AM
This revision is now accepted and ready to land.May 1 2023, 11:18 AM
kuhar edited the summary of this revision. (Show Details)May 1 2023, 11:30 AM