https://github.com/phoebewang approved this pull request. I was thinking we'd better do it in a general way. But took a look at instructions, seems MULX is the only one that can commute operands with implicit register. So LGTM. https://github.com/llvm/llvm-project/pull/184462