[all-commits] [llvm/llvm-project] 933247: [SimplifyLibCalls] Merge sqrt into the power of ex...
Anton Sidorenko via All-commits
all-commits at lists.llvm.org
Tue Feb 6 01:02:18 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 933247d9d6a2aee66de49e84077ce116630e76cd
https://github.com/llvm/llvm-project/commit/933247d9d6a2aee66de49e84077ce116630e76cd
Author: Anton Sidorenko <anton.sidorenko at syntacore.com>
Date: 2024-02-06 (Tue, 06 Feb 2024)
Changed paths:
M llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
M llvm/test/Transforms/InstCombine/sqrt.ll
Log Message:
-----------
[SimplifyLibCalls] Merge sqrt into the power of exp (#79146)
Under fast-math flags it's possible to convert `sqrt(exp(X)) `into
`exp(X * 0.5)`. I suppose that this transformation is always profitable.
This is similar to the optimization existing in GCC.
More information about the All-commits
mailing list