sdardis planned changes to this revision. sdardis added a comment. I need to refine the logic a bit further after some testing due to interactions with the CPIC ABI extension and the -mabicalls option. https://reviews.llvm.org/D23652