arsenm wrote: > Thanks, yes if it can be done earlier in SimplifyLibCalls that would be better. Is there a PR in progress? SimplifyLibCalls should already do this for sqrt. #171114 started the SDAG removal https://github.com/llvm/llvm-project/pull/221747