This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Improve SK_Reverse shuffle costs for fixed length vectors
ClosedPublic

Authored by reames on Mar 13 2023, 11:36 AM.

Details

Summary

As noted by @luke (https://reviews.llvm.org/D145953#inline-1409312), we were accounting for the cost of vector element size using vlenb whereas the expression can be constant folded for fixed length vectors.

Diff Detail

Event Timeline

reames created this revision.Mar 13 2023, 11:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 11:36 AM
reames requested review of this revision.Mar 13 2023, 11:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 11:36 AM
asb accepted this revision.EditedMar 13 2023, 12:25 PM

Weak LGTM in that the logic seems sensible to me, but I've not really worked directly on the vector cost model before.

This revision is now accepted and ready to land.Mar 13 2023, 12:25 PM
luke accepted this revision.Mar 13 2023, 2:24 PM

LGTM

This revision was landed with ongoing or failed builds.Mar 13 2023, 3:17 PM
This revision was automatically updated to reflect the committed changes.