[all-commits] [llvm/llvm-project] 5184d7: [InstCombine] Convert @log to @llvm.log if the inp...
David Green via All-commits
all-commits at lists.llvm.org
Thu Oct 10 01:54:47 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5184d763c70bf0c64b309262a40d9528a7dc4a2f
https://github.com/llvm/llvm-project/commit/5184d763c70bf0c64b309262a40d9528a7dc4a2f
Author: David Green <david.green at arm.com>
Date: 2024-10-10 (Thu, 10 Oct 2024)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
M llvm/test/Transforms/InstCombine/double-float-shrink-1.ll
M llvm/test/Transforms/InstCombine/log-pow.ll
M llvm/test/Transforms/InstCombine/log-to-intrinsic.ll
Log Message:
-----------
[InstCombine] Convert @log to @llvm.log if the input is known positive. (#111428)
Similar to 112aac4e8961b9626bb84f36deeaa5a674f03f5a, this converts log
libcalls to llvm.log.f64 intrinsics if we know they do not set errno, as
the input is not zero and not negative. As log will produce errno if the
input is 0 (returning -inf) or if the input is negative (returning nan),
we also perform the conversion when we have noinf and nonan.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list