[llvm] [ConstantFolding] Consider `tanh*` to always be a noop (PR #70794)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 6 07:51:12 PST 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/48474
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/EarlyCSE/math-1.ll' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -passes=early-cse -earlycse-debug-hash -S -o - /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/EarlyCSE/math-1.ll | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/EarlyCSE/math-1.ll
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -passes=early-cse -earlycse-debug-hash -S -o - /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/EarlyCSE/math-1.ll
# note: command had no output on stdout or stderr
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/EarlyCSE/math-1.ll
# .---command stderr------------
# | [1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/EarlyCSE/math-1.ll:189:15: [0m[0;1;31merror: [0m[1mCHECK-NEXT: expected string not found in input
[0m# | [1m[0m; CHECK-NEXT: [[RES:%.*]] = tail call fast float @tanhf(float 1.000000e+00)
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:148:23: [0m[0;1;30mnote: [0m[1mscanning from here
[0m# | [1m[0mdefine float @f_tanhf() {
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:149:2: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m# | [1m[0m ret float 0x3FE85EFAC0000000
# | [0;1;32m ^
[0m# | [0;1;32m[0m
# | Input file: <stdin>
# | Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/EarlyCSE/math-1.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | [1m[0m[0;1;30m 1: [0m[1m[0;1;46m; ModuleID = '/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/EarlyCSE/math-1.ll' [0m
# | [0;1;30m 2: [0m[1m[0;1;46msource_filename = "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/EarlyCSE/math-1.ll" [0m
# | [0;1;30m 3: [0m[1m[0;1;46m [0m
# | [0;1;30m 4: [0m[1m[0;1;46m; Function Attrs: nofree nounwind willreturn [0m
# | [0;1;30m 5: [0m[1m[0;1;46mdeclare double @acos(double) #0 [0m
# | [0;1;30m 6: [0m[1m[0;1;46m [0m
# | [0;1;30m 7: [0m[1m[0;1;46mdefine double [0m at f_acos([0;1;46m) { [0m
# | [0;1;32mlabel:6'0 ^~~~~~~~
[0m# | [0;1;32m[0m[0;1;32mlabel:6'1 ^~~~~~~~
[0m# | [0;1;32m[0m[0;1;30m 8: [0m[1m[0;1;46m [0mret double 0.000000e+00[0;1;46m [0m
# | [0;1;32mnext:7 ^~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;32m[0m[0;1;30m 9: [0m[1m[0;1;46m} [0m
# | [0;1;30m 10: [0m[1m[0;1;46m [0m
# | [0;1;30m 11: [0m[1m[0;1;46m; Function Attrs: nofree nounwind willreturn [0m
# | [0;1;30m 12: [0m[1m[0;1;46mdeclare float @asinf(float) #0 [0m
# | [0;1;30m 13: [0m[1m[0;1;46m [0m
# | [0;1;30m 14: [0m[1m[0;1;46mdefine float [0m at f_asinf([0;1;46m) { [0m
# | [0;1;32mlabel:15'0 ^~~~~~~~~
[0m# | [0;1;32m[0m[0;1;32mlabel:15'1 ^~~~~~~~~
[0m# | [0;1;32m[0m[0;1;30m 15: [0m[1m[0;1;46m [0mret float 0x3FF921FB60000000[0;1;46m [0m
# | [0;1;32mnext:16 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;32m[0m[0;1;30m 16: [0m[1m[0;1;46m} [0m
...
```
</details>
https://github.com/llvm/llvm-project/pull/70794
More information about the llvm-commits
mailing list