davemgreen wrote: If you wanted to try and keep the first patch simpler and add the instruction duplication in a follow-on, that might help with the first patch. Up to you what you think. https://github.com/llvm/llvm-project/pull/148343