Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reland logf128 constant folding #103217

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Reland logf128 constant folding #103217

merged 1 commit into from
Aug 14, 2024

Conversation

MDevereau
Copy link
Contributor

This is a reland of #96287. This change makes tests in logf128.ll ignore the sign of NaNs for negative value tests and moves an #include to be blocked behind #ifndef _GLIBCXX_MATH_H.

This is a reland of (llvm#96287). This change makes tests
in logf128.ll ignore the sign of NaNs for negative value
tests and moves an #include <cmath> to be blocked
behind #ifndef _GLIBCXX_MATH_H.
@MDevereau MDevereau merged commit 3cab7c5 into llvm:main Aug 14, 2024
9 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 14, 2024

LLVM Buildbot has detected a new failure on builder ppc64le-lld-multistage-test running on ppc64le-lld-multistage-test while building llvm at step 7 "test-build-stage1-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-stage1-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/ConstProp/logf128.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/opt < /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll -passes=instsimplify -S | /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/opt -passes=instsimplify -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:10:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xL300000000000000040010A2B23F3BAB7
              ^
<stdin>:9:27: note: scanning from here
define fp128 @log_e_64() {
                          ^
<stdin>:10:43: note: possible intended match here
 %A = call fp128 @llvm.log.f128(fp128 noundef 0xL00000000000000004005000000000000)
                                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:18:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xL3000000000000000C00C654628220780
              ^
<stdin>:14:59: note: scanning from here
define fp128 @log_e_smallest_positive_subnormal_number() {
                                                          ^
<stdin>:15:43: note: possible intended match here
 %A = call fp128 @llvm.log.f128(fp128 noundef 0xL00000000000000010000000000000000)
                                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:26:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xLD000000000000000C00C62D918CE2421
              ^
<stdin>:19:49: note: scanning from here
define fp128 @log_e_largest_subnormal_number() {
                                                ^
<stdin>:21:2: note: possible intended match here
 ret fp128 %A
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:35:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xLD000000000000000C00C62D918CE2421
              ^
<stdin>:24:56: note: scanning from here
define fp128 @log_e_smallest_positive_normal_number() {
                                                       ^
<stdin>:25:43: note: possible intended match here
 %A = call fp128 @llvm.log.f128(fp128 noundef 0xL00000000000000000001000000000000)
                                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:43:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xLF000000000000000400C62E42FEFA39E
              ^
<stdin>:29:46: note: scanning from here
define fp128 @log_e_largest_normal_number() {
                                             ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 14, 2024

LLVM Buildbot has detected a new failure on builder clang-ppc64le-linux-test-suite running on ppc64le-clang-test-suite while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/ConstProp/logf128.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/opt < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll -passes=instsimplify -S | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/opt -passes=instsimplify -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:10:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xL300000000000000040010A2B23F3BAB7
              ^
<stdin>:9:27: note: scanning from here
define fp128 @log_e_64() {
                          ^
<stdin>:10:43: note: possible intended match here
 %A = call fp128 @llvm.log.f128(fp128 noundef 0xL00000000000000004005000000000000)
                                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:18:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xL3000000000000000C00C654628220780
              ^
<stdin>:14:59: note: scanning from here
define fp128 @log_e_smallest_positive_subnormal_number() {
                                                          ^
<stdin>:15:43: note: possible intended match here
 %A = call fp128 @llvm.log.f128(fp128 noundef 0xL00000000000000010000000000000000)
                                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:26:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xLD000000000000000C00C62D918CE2421
              ^
<stdin>:19:49: note: scanning from here
define fp128 @log_e_largest_subnormal_number() {
                                                ^
<stdin>:21:2: note: possible intended match here
 ret fp128 %A
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:35:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xLD000000000000000C00C62D918CE2421
              ^
<stdin>:24:56: note: scanning from here
define fp128 @log_e_smallest_positive_normal_number() {
                                                       ^
<stdin>:25:43: note: possible intended match here
 %A = call fp128 @llvm.log.f128(fp128 noundef 0xL00000000000000000001000000000000)
                                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:43:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xLF000000000000000400C62E42FEFA39E
              ^
<stdin>:29:46: note: scanning from here
define fp128 @log_e_largest_normal_number() {
                                             ^
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 14, 2024

LLVM Buildbot has detected a new failure on builder premerge-monolithic-windows running on premerge-windows-1 while building llvm at step 5 "clean-build-dir".

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

Here is the relevant piece of the build log for the reference:

Step 5 (clean-build-dir) failure: Delete failed. (failure)
Step 7 (build-unified-tree) failure: build (failure)
...
[8105/12502] Building CXX object tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\semantics.cpp.obj
C:\ws\buildbot\premerge-monolithic-windows\llvm-project\flang\lib\Semantics\semantics.cpp(667): warning C4927: illegal conversion; more than one user-defined conversion has been implicitly applied
C:\ws\buildbot\premerge-monolithic-windows\llvm-project\flang\lib\Semantics\semantics.cpp(667): note: while calling the constructor 'Fortran::semantics::Symbol::Symbol(const Fortran::semantics::Symbol &) noexcept(false)'
C:\ws\buildbot\premerge-monolithic-windows\llvm-project\flang\include\flang\Semantics\symbol.h(959): note: compiler has generated 'Fortran::semantics::Symbol::Symbol' here
[8106/12502] Building CXX object tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\symbol.cpp.obj
[8107/12502] Building CXX object tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\tools.cpp.obj
[8108/12502] Building CXX object tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\type.cpp.obj
[8109/12502] Building CXX object tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\unparse-with-symbols.cpp.obj
[8110/12502] Building CXX object tools\flang\lib\Frontend\CMakeFiles\flangFrontend.dir\CodeGenOptions.cpp.obj
[8111/12502] Linking CXX static library lib\FortranSemantics.lib
FAILED: lib/FortranSemantics.lib 
cmd.exe /C "cd . && C:\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\lib.exe /nologo /machine:x64 /out:lib\FortranSemantics.lib tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\assignment.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\attr.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\canonicalize-acc.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\canonicalize-directives.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\canonicalize-do.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\canonicalize-omp.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-acc-structure.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-allocate.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-arithmeticif.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-call.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-case.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-coarray.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-cuda.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-data.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-deallocate.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-declarations.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-do-forall.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-if-stmt.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-io.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-namelist.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-nullify.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-omp-structure.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-purity.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-return.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-select-rank.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-select-type.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\check-stop.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\compute-offsets.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\data-to-inits.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\definable.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\expression.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\mod-file.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\pointer-assignment.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\program-tree.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\resolve-labels.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\resolve-directives.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\resolve-names-utils.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\resolve-names.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\rewrite-directives.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\rewrite-parse-tree.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\runtime-type-info.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\scope.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\semantics.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\symbol.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\tools.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\type.cpp.obj tools\flang\lib\Semantics\CMakeFiles\FortranSemantics.dir\unparse-with-symbols.cpp.obj  && cd ."
LINK : fatal error LNK1102: out of memory

[8112/12502] Building CXX object tools\flang\lib\Frontend\CMakeFiles\flangFrontend.dir\FrontendAction.cpp.obj
FAILED: tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/FrontendAction.cpp.obj 
sccache C:\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe  /nologo /TP -DFLANG_INCLUDE_TESTS=1 -DFLANG_LITTLE_ENDIAN=1 -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools\flang\lib\Frontend -IC:\ws\buildbot\premerge-monolithic-windows\llvm-project\flang\lib\Frontend -IC:\ws\buildbot\premerge-monolithic-windows\llvm-project\flang\include -Itools\flang\include -Iinclude -IC:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\include -IC:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\..\mlir\include -Itools\mlir\include -Itools\clang\include -IC:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\..\clang\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -w14062 -we4238 /Gw /O2 /Ob2  -MD  /EHs-c- /GR- -UNDEBUG -std:c++17 /showIncludes /Fotools\flang\lib\Frontend\CMakeFiles\flangFrontend.dir\FrontendAction.cpp.obj /Fdtools\flang\lib\Frontend\CMakeFiles\flangFrontend.dir\flangFrontend.pdb /FS -c C:\ws\buildbot\premerge-monolithic-windows\llvm-project\flang\lib\Frontend\FrontendAction.cpp
c1xx: fatal error C1356: unable to find mspdbcore.dll
<unnamed>' panicked at 'failed to reserve stack space for exception handling', library\std\src\sys\windows\stack_overflow.rs:15:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'panic in a function that cannot unwind', library\core\src\panicking.rs:126:5
stack backtrace:
   0:     0x7ff717445606 - <unknown>
   1:     0x7ff7169c07ab - <unknown>
   2:     0x7ff717424e81 - <unknown>
   3:     0x7ff71744a56b - <unknown>
   4:     0x7ff71744a148 - <unknown>
   5:     0x7ff71744b068 - <unknown>
   6:     0x7ff71744aa74 - <unknown>
   7:     0x7ff71744a9f9 - <unknown>
   8:     0x7ff71744a9e4 - <unknown>
   9:     0x7ff7175f8fe4 - <unknown>
  10:     0x7ff7175f9074 - <unknown>
  11:     0x7ff7175f9019 - <unknown>
  12:     0x7ff717440ff4 - <unknown>
  13:     0x7ff7175ed620 - <unknown>
  14:     0x7ff7175eccc0 - <unknown>
  15:     0x7ffe53284176 - RtlCaptureContext
  16:     0x7ff717440fd8 - <unknown>
  17:     0x7ffe42717974 - BaseThreadInitThunk
  18:     0x7ffe5323a4e1 - RtlUserThreadStart
thread caused non-unwinding panic. aborting.
[8113/12502] Building CXX object tools\flang\lib\Lower\CMakeFiles\FortranLower.dir\ConvertArrayConstructor.cpp.obj
FAILED: tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/ConvertArrayConstructor.cpp.obj 
sccache C:\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe  /nologo /TP -DFLANG_INCLUDE_TESTS=1 -DFLANG_LITTLE_ENDIAN=1 -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools\flang\lib\Lower -IC:\ws\buildbot\premerge-monolithic-windows\llvm-project\flang\lib\Lower -IC:\ws\buildbot\premerge-monolithic-windows\llvm-project\flang\include -Itools\flang\include -Iinclude -IC:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\include -IC:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\..\mlir\include -Itools\mlir\include -Itools\clang\include -IC:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\..\clang\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -w14062 -we4238 /Gw /O2 /Ob2  -MD  /EHs-c- /GR- -UNDEBUG -std:c++17 /showIncludes /Fotools\flang\lib\Lower\CMakeFiles\FortranLower.dir\ConvertArrayConstructor.cpp.obj /Fdtools\flang\lib\Lower\CMakeFiles\FortranLower.dir\FortranLower.pdb /FS -c C:\ws\buildbot\premerge-monolithic-windows\llvm-project\flang\lib\Lower\ConvertArrayConstructor.cpp
sccache: error: failed to execute compile
sccache: caused by: error reading compile response from server
sccache: caused by: Failed to read response header
sccache: caused by: An existing connection was forcibly closed by the remote host. (os error 10054)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 14, 2024

LLVM Buildbot has detected a new failure on builder clang-ppc64le-linux-multistage running on ppc64le-clang-multistage-test while building llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference:

Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/ConstProp/logf128.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/opt < /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll -passes=instsimplify -S | /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/opt -passes=instsimplify -S
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage1/bin/FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:10:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xL300000000000000040010A2B23F3BAB7
              ^
<stdin>:9:27: note: scanning from here
define fp128 @log_e_64() {
                          ^
<stdin>:10:43: note: possible intended match here
 %A = call fp128 @llvm.log.f128(fp128 noundef 0xL00000000000000004005000000000000)
                                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:18:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xL3000000000000000C00C654628220780
              ^
<stdin>:14:59: note: scanning from here
define fp128 @log_e_smallest_positive_subnormal_number() {
                                                          ^
<stdin>:15:43: note: possible intended match here
 %A = call fp128 @llvm.log.f128(fp128 noundef 0xL00000000000000010000000000000000)
                                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:26:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xLD000000000000000C00C62D918CE2421
              ^
<stdin>:19:49: note: scanning from here
define fp128 @log_e_largest_subnormal_number() {
                                                ^
<stdin>:21:2: note: possible intended match here
 ret fp128 %A
 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:35:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xLD000000000000000C00C62D918CE2421
              ^
<stdin>:24:56: note: scanning from here
define fp128 @log_e_smallest_positive_normal_number() {
                                                       ^
<stdin>:25:43: note: possible intended match here
 %A = call fp128 @llvm.log.f128(fp128 noundef 0xL00000000000000000001000000000000)
                                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll:43:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret fp128 0xLF000000000000000400C62E42FEFA39E
              ^
<stdin>:29:46: note: scanning from here
define fp128 @log_e_largest_normal_number() {
                                             ^
...

nikic added a commit that referenced this pull request Aug 14, 2024
This reverts commit 3cab7c5.

The modified test fails on ppc64le buildbots.
@nikic
Copy link
Contributor

nikic commented Aug 14, 2024

moves an #include to be blocked behind #ifndef _GLIBCXX_MATH_H.

This didn't help. This still adds 2% to clang build times.

@MDevereau MDevereau deleted the logf128-land-2 branch August 14, 2024 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants