This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add cost model for fp-mask cast op.
ClosedPublic

Authored by jacquesguan on Aug 4 2022, 2:28 AM.

Details

Summary

The cost of convert from or to mask vector is different from other cases. We could not use PowDiff to calculate it. This patch set it to 3 as we use 3 instruction to make it.

Diff Detail

Event Timeline

jacquesguan created this revision.Aug 4 2022, 2:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2022, 2:28 AM
jacquesguan requested review of this revision.Aug 4 2022, 2:28 AM
reames accepted this revision.Aug 9 2022, 8:31 AM

LGTM w/required change before landing

llvm/test/Analysis/CostModel/RISCV/cast.ll
118–122

You have a bunch of white space changes here which make the test diffs impossible to read.

Please update the test diffs once on a clean checkout, commit the change, and then apply your change and regenerate the test diffs.

This revision is now accepted and ready to land.Aug 9 2022, 8:31 AM

rebase main.

llvm/test/Analysis/CostModel/RISCV/cast.ll
118–122

Done.

This revision was landed with ongoing or failed builds.Aug 10 2022, 2:15 AM
This revision was automatically updated to reflect the committed changes.