c8ef wrote: It appears that the newly added function may cause an infinite loop and some regression with kmov. ![image](https://github.com/user-attachments/assets/a3497b20-33fc-4a60-aa20-95c7b2ad0359) https://github.com/llvm/llvm-project/pull/107732