shraiysh wrote: Yes, it will not work in that case. I don't know how to handle it there - should we keep track of which functions call these runtime functions while setting attributes? https://github.com/llvm/llvm-project/pull/73697