Skip to content
  • Sam Parker's avatar
    [CostModel] getCFInstrCost in getUserCost. · 2596da31
    Sam Parker authored
    Have BasicTTI call the base implementation so that both agree on the
    default behaviour, which the default being a cost of '1'. This has
    required an X86 specific implementation as it seems to be very
    reliant on those instructions being free. Changes are also made to
    AMDGPU so that their implementations distinguish between cost kinds,
    so that the unrolling isn't affected. PowerPC also has its own
    implementation to prevent changes to the reg-usage vectorizer test.
    
    The cost model test changes now reflect that ret instructions are not
    generally free.
    
    Differential Revision: https://reviews.llvm.org/D79164
    2596da31