llvm/llvm-project
Voir sur GitHubscalbln(x, n), scalbn(x, n), ldexp(x, n) are not folded at the compilation time when (x, n) is constant
Open
#112 631 ouverte le 16 oct. 2024
floating-pointgood first issuellvm:optimizationsmissed-optimization
Métriques du dépôt
- Stars
- (26 378 stars)
- Métriques de merge PR
- (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)
Description
Consider the following example. https://godbolt.org/z/54xsG8WTr
#include <cmath>
double f1() {
return std::scalbln(3.0, 4);
}
double f2() {
return std::scalbn(3.0, 4);
}
double f3() {
return std::ldexp(3.0, 4);
}