[llvm] ValueTracking: Handle frexp exp in computeKnownConstantRange (PR #191282)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 11 23:41:36 PDT 2026


arsenm wrote:

> The LangRef says the returned exponent is unspecified when the input is either a NaN or an infinity. Should we clarify that the return value is poison in these cases?

Maybe. Another option is to specify it to 0; OpenCL has this as a stricter requirement. than C, but I'd need to check what existing libm implementation do 

https://github.com/llvm/llvm-project/pull/191282


More information about the llvm-commits mailing list