[llvm] [ConstantFold] Fold `tgamma` and `tgammaf` when the input parameter is a constant value. (PR #114065)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 31 18:16:48 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/6990

<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/InstCombine/tgamma.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /buildbot/worker/arc-folder/build/bin/opt < /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/InstCombine/tgamma.ll -passes=instcombine -S | /buildbot/worker/arc-folder/build/bin/FileCheck /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/InstCombine/tgamma.ll
+ /buildbot/worker/arc-folder/build/bin/FileCheck /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/InstCombine/tgamma.ll
+ /buildbot/worker/arc-folder/build/bin/opt -passes=instcombine -S
/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/InstCombine/tgamma.ll:14:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret double 0x605166C698CF183B
              ^
<stdin>:8:35: note: scanning from here
define double @tgamma_in_range() {
                                  ^
<stdin>:9:2: note: possible intended match here
 ret double 0x605166C698CF194B
 ^

Input file: <stdin>
Check file: /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/InstCombine/tgamma.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1: ; ModuleID = '<stdin>' 
           2: source_filename = "<stdin>" 
           3:  
           4: define float @tgammaf_in_range() { 
           5:  ret float 0x479A216280000000 
           6: } 
           7:  
           8: define double @tgamma_in_range() { 
next:14'0                                       X error: no match found
           9:  ret double 0x605166C698CF194B 
next:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:14'1      ?                              possible intended match
          10: } 
next:14'0     ~~
          11:  
next:14'0     ~
          12: define float @tgammaf_const_left_range() { 
next:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          13:  %r = call float @tgammaf(float 0x3810000000000000) 
          14:  ret float %r 
           .
           .
           .
>>>>>>

...

```

</details>

https://github.com/llvm/llvm-project/pull/114065


More information about the llvm-commits mailing list