[llvm] [InstCombine] Handle more even/odd math functions (PR #81324)
Krishna Narayanan via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 10 09:59:55 PST 2024
Krishna-13-cyber wrote:
> @pogo59 Could you please help with updating `llvm/test/tools/llvm-tli-checker/ps4-tli-check.yaml`? It is unclear to me how it should be updated when adding new `math.h` functions.
Hi @agentcooper,
You can just set the added functions as unavailable for PS4/PS5 in TargetLibraryInfo.cpp which will help you pass all the checks.
```
TLI.setUnavailable(LibFunc_erf);
TLI.setUnavailable(LibFunc_erff);
TLI.setUnavailable(LibFunc_erfl);
```
https://github.com/llvm/llvm-project/pull/81324
More information about the llvm-commits
mailing list