rsmith added a comment. https://reviews.llvm.org/D79378 addresses this issue and moves the optimization to the frontend where it can be done correctly. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D37933/new/ https://reviews.llvm.org/D37933