[PATCH] D39204: [CodeGen] __builtin_sqrt should map to the compiler's intrinsic sqrt function

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 24 16:21:24 PDT 2017


efriedma added a comment.

I think you're understanding the semantics correctly.

For r265521, look again at the implementation of llvm::checkUnaryFloatSignature; if "I.onlyReadsMemory()" is true, we somehow proved the call doesn't set errno (mostly likely because we know something about the target's libm).


https://reviews.llvm.org/D39204





More information about the cfe-commits mailing list