arsenm added a comment. I think the real fix is to make SUBREG_TO_REG use a tied operand with a subregister but that will be a much larger patch CHANGES SINCE LAST ACTION https://reviews.llvm.org/D156164/new/ https://reviews.llvm.org/D156164