This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][CostModel] Add cost model for integer abs
ClosedPublic

Authored by Miss_Grape on Aug 31 2022, 12:34 AM.

Diff Detail

Event Timeline

Miss_Grape created this revision.Aug 31 2022, 12:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2022, 12:34 AM
Miss_Grape requested review of this revision.Aug 31 2022, 12:34 AM
Miss_Grape retitled this revision from [RISCV][CostModel] Add test coverage for integer abs to [RISCV][CostModel] Add cost model for integer abs.
reames resigned from this revision.Aug 31 2022, 2:25 PM
Miss_Grape edited reviewers, added: craig.topper; removed: reames.Aug 31 2022, 5:52 PM
craig.topper added inline comments.Sep 8 2022, 3:23 PM
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
889

There an implicit fallthrough here. You need a break;

address the comment

Miss_Grape marked an inline comment as done.Sep 13 2022, 7:10 PM
craig.topper added inline comments.Sep 13 2022, 9:38 PM
llvm/test/Analysis/CostModel/RISCV/abs.ll
28

There's an extra . after nx here

Miss_Grape marked an inline comment as done.
This revision is now accepted and ready to land.Jan 3 2023, 5:52 PM
This revision was landed with ongoing or failed builds.Jan 8 2023, 7:47 PM
This revision was automatically updated to reflect the committed changes.