aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorSam Parker <sam.parker@arm.com>2020-06-05 08:42:03 +0100
committerSam Parker <sam.parker@arm.com>2020-06-10 09:08:45 +0100
commitfa8bff0cd1ad28b78a8910ebb1be077ef010f91f (patch)
tree94e646bddc305e3fa3bc42f8b0f90b2b6530d8f7 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent49e4faa010e1fde152404c1f393a4e8d72f27792 (diff)
downloadllvm-fa8bff0cd1ad28b78a8910ebb1be077ef010f91f.zip
llvm-fa8bff0cd1ad28b78a8910ebb1be077ef010f91f.tar.gz
llvm-fa8bff0cd1ad28b78a8910ebb1be077ef010f91f.tar.bz2
[CostModel] Unify getArithmeticInstrCost
Add the remaining arithmetic opcodes into the generic implementation of getUserCost and then call this from getInstructionThroughput. Most of the backends have been modified to return the base implementation for cost kinds other RecipThroughput. The outlier here is AMDGPU which already uses getArithmeticInstrCost for all the cost kinds. This change means that most of the opcodes can be removed from that backends implementation of getUserCost. Differential Revision: https://reviews.llvm.org/D80992
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions