NewSigma wrote: Thanks for the review. I agree with you that the previous implementation looks dangerous. In this revision, I managed to emit conversion part only when necessary and I believe it is a improvement. Please have a look. https://github.com/llvm/llvm-project/pull/151067