[all-commits] [llvm/llvm-project] 5a1005: [Analysis] Treat ldexpf() as missing on MinGW (#84...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Tue Mar 12 03:33:09 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5a100551d5652da586800c67edd4ccb3b18b10dc
https://github.com/llvm/llvm-project/commit/5a100551d5652da586800c67edd4ccb3b18b10dc
Author: Martin Storsjö <martin at martin.st>
Date: 2024-03-12 (Tue, 12 Mar 2024)
Changed paths:
M llvm/lib/Analysis/TargetLibraryInfo.cpp
M llvm/test/Transforms/InstCombine/exp2-1.ll
Log Message:
-----------
[Analysis] Treat ldexpf() as missing on MinGW (#84748)
The function does exist, but it is a plain wrapper over regular ldexp(),
so there's no benefit in calling it over regular ldexp(). Therefore,
treat it as missing.
This fixes builds of Wine for aarch64 with Clang in mingw mode, which
regressed recently in 8d976c7f20fe8d92fe6f54af411594e15fac25ae. That
commit unlocked transforming calls to ldexp into ldexpf, for some
codepaths within Wine. Wine can use compilers in mingw mode without
the regular mingw runtime libraries, which caused this to fail.
(However, if the transformation to use ldexpf() would have made sense,
the right fix would have been for Wine to provide a similar
ldexpf->ldexp wrapper just like mingw does.)
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