[PATCH] D82091: [ARM][CostModel] Select instruction costs.

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 18 06:30:19 PDT 2020


samparker created this revision.
samparker added reviewers: dmgreen, SjoerdMeijer, efriedma, ostannard.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.

Modify the ARM getCmpSelInstrCost implementation to return something a little more sensible for select instructions when we're querying a cost kind other than throughput, or we have a scalar type. We now consider the legalization cost and also make selects +1 more expensive.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82091

Files:
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/ARM/arith-ssat.ll
  llvm/test/Analysis/CostModel/ARM/arith-usat.ll
  llvm/test/Analysis/CostModel/ARM/immediates.ll
  llvm/test/Analysis/CostModel/ARM/reduce-smax.ll
  llvm/test/Analysis/CostModel/ARM/reduce-smin.ll
  llvm/test/Analysis/CostModel/ARM/reduce-umax.ll
  llvm/test/Analysis/CostModel/ARM/reduce-umin.ll
  llvm/test/Analysis/CostModel/ARM/select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82091.271697.patch
Type: text/x-patch
Size: 160297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200618/20704b40/attachment-0001.bin>


More information about the llvm-commits mailing list