This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add cost model for vector.splice mask operation
Needs RevisionPublic

Authored by Jimerlife on Jul 8 2022, 12:45 AM.

Details

Summary

Vector.splice mask operation need additional two operand extend and truncate. So, I try to adjust cost model with adding extend and truncate cost.

Diff Detail

Event Timeline

Jimerlife created this revision.Jul 8 2022, 12:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2022, 12:45 AM
Jimerlife requested review of this revision.Jul 8 2022, 12:45 AM
reames requested changes to this revision.Jul 12 2022, 10:08 AM

I'm a bit confused. It sounds like the sequence you're describing is inserted during legalization? If so, why is this not covered by the existing use of legalization cost?

Also, it would help me to understand your intent if you included the generated code for an example in the review description.

This revision now requires changes to proceed.Jul 12 2022, 10:08 AM