Comment on my own patch: This needs to be controllable via option. (For GCC the similar transformation is controlled with -m[no-]optimize-swaps.) REPOSITORY rL LLVM http://reviews.llvm.org/D8565 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/