arsenm accepted this revision. arsenm added a comment. This revision is now accepted and ready to land. LGTM. It does look like the default inline heuristic does consider the SROAability of the passed arguments to some degree https://reviews.llvm.org/D36849