This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add cost model for vector.reverse mask operation
ClosedPublic

Authored by Jimerlife on Jun 28 2022, 11:35 PM.

Details

Summary

For vector.reverse mask operation need additional extend and truncate. So, I try to adjust this cost model.

Diff Detail

Event Timeline

Jimerlife created this revision.Jun 28 2022, 11:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2022, 11:35 PM
Jimerlife requested review of this revision.Jun 28 2022, 11:35 PM
craig.topper added inline comments.Jul 6 2022, 3:19 PM
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
203

Isn't extend 2 instructions, vmv+vmerge?

Jimerlife updated this revision to Diff 442754.Jul 6 2022, 7:20 PM

address comment

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
203

Yes, you are right. I forget to add vmv. Thank you.

This revision is now accepted and ready to land.Jul 14 2022, 8:14 PM
This revision was landed with ongoing or failed builds.Jul 14 2022, 11:59 PM
This revision was automatically updated to reflect the committed changes.