Replace iteration over defs() with operands() as INLINEASM instruction isn't compatible with defs() - it has completly different order of operands: asm string, flags and pairs of flags:operand. defs() assumes all def operands go sequentally from the beginning of operands.
How LLVM could work all these years? Should an assert not using on INLINEASM in defs be added?
Not sure how to test this.