lebedev.ri added a comment. Can you elaborate more on why this canonicalization should be performed? (show godbolt output with/without this Is it an instruction selection issue? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D71516/new/ https://reviews.llvm.org/D71516