Skip to content
  • Sam Parker's avatar
    [CostModel] Unify getArithmeticInstrCost · fa8bff0c
    Sam Parker authored
    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
    fa8bff0c