rampitec wrote: > No real objection but... shouldn't verifyInstruction call isOperandLegal on all operands so that we don't have to duplicate checks like this? I was surprised it does not, but it is a way bigger change. https://github.com/llvm/llvm-project/pull/170550