dnsampaio wrote: @cardigan1008 You're correct. I've fixed the patch to detect if any instructions with possible side effects or write to memory occur between the load and store operation, as to avoid such cases. Many thanks. https://github.com/llvm/llvm-project/pull/179277