[llvm] [InstSimplify] Add basic constant folding for `llvm.sincos` (PR #114527)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 8 13:30:35 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/9722
<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/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 1: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt -S -passes=instsimplify /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt -S -passes=instsimplify /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: [0m[0;1;31merror: [0m[1mCHECK-NEXT: expected string not found in input
[0m; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
[0;1;32m ^
[0m[1m<stdin>:24:60: [0m[0;1;30mnote: [0m[1mscanning from here
[0mdefine { <2 x float>, <2 x float> } @sincos_zero_vector() {
[0;1;32m ^
[0m[1m<stdin>:25:2: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
[0;1;32m ^
[0m
Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.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-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll' [0m
[0;1;30m 2: [0m[1m[0;1;46msource_filename = "/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll" [0m
[0;1;30m 3: [0m[1m[0;1;46m [0m
[0;1;30m 4: [0m[1m[0;1;46m[0mdefine { float, float } @sincos_zero() {[0;1;46m [0m
[0;1;32mlabel:4'0 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;32mlabel:4'1 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 5: [0m[1m[0;1;46m [0mret { float, float } { float 0.000000e+00, float 1.000000e+00 }[0;1;46m [0m
[0;1;32mnext:5 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 6: [0m[1m[0;1;46m} [0m
[0;1;30m 7: [0m[1m[0;1;46m [0m
[0;1;30m 8: [0m[1m[0;1;46m[0mdefine { float, float } @sincos_neg_zero() {[0;1;46m [0m
[0;1;32mlabel:12'0 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;32mlabel:12'1 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 9: [0m[1m[0;1;46m [0mret { float, float } { float -0.000000e+00, float 1.000000e+00 }[0;1;46m [0m
[0;1;32mnext:13 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 10: [0m[1m[0;1;46m} [0m
[0;1;30m 11: [0m[1m[0;1;46m [0m
[0;1;30m 12: [0m[1m[0;1;46m[0mdefine { float, float } @sincos_one() {[0;1;46m [0m
[0;1;32mlabel:20'0 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;32mlabel:20'1 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 13: [0m[1m[0;1;46m [0mret { float, float } { float 0x3FEAED5480000000, float 0x3FE14A2800000000 }[0;1;46m [0m
[0;1;32mnext:21'0 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;32mnext:21'1 ^~~~~~~~~~~~~~~~~~ captured var "$SIN_ONE"
[0m[0;1;32mnext:21'2 ^~~~~~~~~~~~~~~~~~ captured var "$COS_ONE"
[0m[0;1;30m 14: [0m[1m[0;1;46m} [0m
...
```
</details>
https://github.com/llvm/llvm-project/pull/114527
More information about the llvm-commits
mailing list