Skip to content
  • Zaara Syeda's avatar
    [PowerPC] Add handling for ColdCC calling convention and a pass to mark · 8e951fd2
    Zaara Syeda authored
    candidates with coldcc attribute.
    
    This patch adds support for the coldcc calling convention for Power.
    This changes the set of non-volatile registers. It includes a pass to stress
    test the implementation by marking all static directly called functions with
    the coldcc attribute through the option -enable-coldcc-stress-test. It also
    includes an option, -ppc-enable-coldcc, to add the coldcc attribute to
    functions which are cold at all call sites based on BlockFrequencyInfo when
    the containing function does not call any non cold functions.
    
    Differential Revision: https://reviews.llvm.org/D38413
    
    llvm-svn: 322721
    8e951fd2
Loading