smeenai added a comment. This new version is much better; there doesn't actually appear to be any performance difference for my test case at all now (barring noise). Thank you! https://reviews.llvm.org/D47565