mbrkusanin added a comment. Alternative solution that does not remove out-register would look something like this: https://reviews.llvm.org/differential/diff/211116/ CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64252/new/ https://reviews.llvm.org/D64252