goldsteinn wrote: > This patch is too complicated to me. I can do some tests to see the ir diff. Would it help if I split it into multiple commits? If not any suggestions for simplifying to make it reviewable? https://github.com/llvm/llvm-project/pull/88298