arsenm added a comment. I would also expect the immediate selection to understand the expanded set of immediates before the folding CHANGES SINCE LAST ACTION https://reviews.llvm.org/D71367/new/ https://reviews.llvm.org/D71367