This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Rewrite isLegalElementTypeForRVV in terms of ValueTypes [nfc]
ClosedPublic

Authored by reames on Apr 28 2023, 9:44 AM.

Details

Summary

This was briefly mentioned as a possibility in review discussion on D149369.

One slightly surprising bit to call out - these interfaces can get invoked with non-vector typed arguments. LoopVectorizer likes to call the costing interfaces with scalar types when unrolling, but not vectorizing. I found that surprising, not sure if others do.

Diff Detail

Event Timeline

reames created this revision.Apr 28 2023, 9:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 28 2023, 9:44 AM
reames requested review of this revision.Apr 28 2023, 9:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 28 2023, 9:44 AM
craig.topper accepted this revision.Apr 28 2023, 3:29 PM
This revision is now accepted and ready to land.Apr 28 2023, 3:29 PM
luke accepted this revision.Apr 29 2023, 8:33 AM
This revision was landed with ongoing or failed builds.May 1 2023, 7:37 AM
This revision was automatically updated to reflect the committed changes.