This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][CostModel] Refine cost model for half- and quarter-rate instructions.
ClosedPublic

Authored by dfukalov on Oct 22 2020, 10:24 AM.

Details

Summary
  1. Throughput and codesize costs estimations was separated and updated.
  2. Updated fdiv cost estimation for different cases.
  3. Added scalarization processing for types that are treated as !isSimple() to

improve codesize estimation in getArithmeticInstrCost() and
getArithmeticInstrCost(). The code was borrowed from TCK_RecipThroughput path
of base implementation.

Next step is unify scalarization part in base class that is currently works for
TCK_RecipThroughput path only.

Diff Detail

Event Timeline

dfukalov created this revision.Oct 22 2020, 10:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2020, 10:24 AM
dfukalov requested review of this revision.Oct 22 2020, 10:24 AM
This revision is now accepted and ready to land.Oct 22 2020, 10:41 AM
This revision was landed with ongoing or failed builds.Oct 24 2020, 9:53 AM
This revision was automatically updated to reflect the committed changes.