This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Set explicit benefit for tosa.reshape to linalg
ClosedPublic

Authored by rsuderman on Jan 17 2023, 6:04 PM.

Details

Summary

The patterns used to lower tosa.reshape to linalg are order
dependent which varies depending on platform. Setting the
benefit appropriately guarantees compilation executes the
rewriters in the correct ordering.

Diff Detail

Event Timeline

rsuderman created this revision.Jan 17 2023, 6:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2023, 6:04 PM
rsuderman requested review of this revision.Jan 17 2023, 6:04 PM
benvanik accepted this revision.Jan 17 2023, 6:06 PM
This revision is now accepted and ready to land.Jan 17 2023, 6:06 PM