DanielKristofKiss wrote: Original change is reverted. I refactored the patch to run only from the IRMover only and should be faster too when it doesn't need to do anything. I'd reopen this PR but seem I can't... https://github.com/llvm/llvm-project/pull/80640