Skip to content
  • Sam Parker's avatar
    [CostModel] Unify getCastInstrCost · 8aaabade
    Sam Parker authored
    Add the remaining cast instruction opcodes to the base implementation
    of getUserCost and directly return the result. This allows
    getInstructionThroughput to return getUserCost for the casts. This
    has required changes to PPC and SystemZ because they implement
    getUserCost and/or getCastInstrCost with adjustments for vector
    operations. Adjusts have also been made in the remaining backends
    that implement the method so that they still produce a cost of zero
    or one for cost kinds other than throughput.
    
    Differential Revision: https://reviews.llvm.org/D79848
    8aaabade