[llvm] [InstCombine] Fold `umax(X, C) + -C` into `usub.sat(X, C)` (PR #118195)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 1 07:33:12 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-x86_64-debian-fullbuild-dbg-asan` running on `libc-x86_64-debian-fullbuild` while building `llvm` at step 4 "annotate".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[937/1098] Running unit test libc.test.src.sys.mman.linux.remap_file_pages_test
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRemapFilePagesTest.NoError
[       OK ] LlvmLibcRemapFilePagesTest.NoError (165 us)
[ RUN      ] LlvmLibcRemapFilePagesTest.ErrorInvalidFlags
[       OK ] LlvmLibcRemapFilePagesTest.ErrorInvalidFlags (61 us)
[ RUN      ] LlvmLibcRemapFilePagesTest.ErrorInvalidAddress
[       OK ] LlvmLibcRemapFilePagesTest.ErrorInvalidAddress (5 us)
Ran 3 tests.  PASS: 3  FAIL: 0
[938/1098] Running unit test libc.test.src.sys.mman.linux.process_mrelease_test
FAILED: projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/sys/mman/linux && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcProcessMReleaseTest.NoError
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/sys/mman/linux/process_mrelease_test.cpp:44: FAILURE
Failed to match LIBC_NAMESPACE::process_mrelease(pidfd, 0) against Succeeds().
Expected return value to be equal to 0 but got -1.
Expected errno to be equal to "Success" but got "No such process".
[  FAILED  ] LlvmLibcProcessMReleaseTest.NoError
[ RUN      ] LlvmLibcProcessMReleaseTest.ErrorNotKilled
[       OK ] LlvmLibcProcessMReleaseTest.ErrorNotKilled (756 us)
[ RUN      ] LlvmLibcProcessMReleaseTest.ErrorNonExistingPidfd
[       OK ] LlvmLibcProcessMReleaseTest.ErrorNonExistingPidfd (9 us)
Ran 3 tests.  PASS: 2  FAIL: 1
[939/1098] Running unit test libc.test.src.math.smoke.lrintf_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (8 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (9 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (933 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[940/1098] Running unit test libc.test.src.sys.mman.linux.mincore_test
[==========] Running 6 tests from 1 test suite.
[ RUN      ] LlvmLibcMincoreTest.UnMappedMemory
[       OK ] LlvmLibcMincoreTest.UnMappedMemory (18 us)
[ RUN      ] LlvmLibcMincoreTest.UnalignedAddr
[       OK ] LlvmLibcMincoreTest.UnalignedAddr (48 us)
[ RUN      ] LlvmLibcMincoreTest.InvalidVec
[       OK ] LlvmLibcMincoreTest.InvalidVec (13 us)
[ RUN      ] LlvmLibcMincoreTest.NoError
[       OK ] LlvmLibcMincoreTest.NoError (14 us)
[ RUN      ] LlvmLibcMincoreTest.NegativeLength
[       OK ] LlvmLibcMincoreTest.NegativeLength (13 us)
[ RUN      ] LlvmLibcMincoreTest.PageOut
[       OK ] LlvmLibcMincoreTest.PageOut (45 us)
Ran 6 tests.  PASS: 6  FAIL: 0
[941/1098] Running unit test libc.test.src.sys.mman.linux.shm_test
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[937/1098] Running unit test libc.test.src.sys.mman.linux.remap_file_pages_test
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRemapFilePagesTest.NoError
[       OK ] LlvmLibcRemapFilePagesTest.NoError (165 us)
[ RUN      ] LlvmLibcRemapFilePagesTest.ErrorInvalidFlags
[       OK ] LlvmLibcRemapFilePagesTest.ErrorInvalidFlags (61 us)
[ RUN      ] LlvmLibcRemapFilePagesTest.ErrorInvalidAddress
[       OK ] LlvmLibcRemapFilePagesTest.ErrorInvalidAddress (5 us)
Ran 3 tests.  PASS: 3  FAIL: 0
[938/1098] Running unit test libc.test.src.sys.mman.linux.process_mrelease_test
FAILED: projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/sys/mman/linux/CMakeFiles/libc.test.src.sys.mman.linux.process_mrelease_test 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/sys/mman/linux && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/build/projects/libc/test/src/sys/mman/linux/libc.test.src.sys.mman.linux.process_mrelease_test.__build__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcProcessMReleaseTest.NoError
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg-asan/llvm-project/libc/test/src/sys/mman/linux/process_mrelease_test.cpp:44: FAILURE
Failed to match LIBC_NAMESPACE::process_mrelease(pidfd, 0) against Succeeds().
Expected return value to be equal to 0 but got -1.
Expected errno to be equal to "Success" but got "No such process".
[  FAILED  ] LlvmLibcProcessMReleaseTest.NoError
[ RUN      ] LlvmLibcProcessMReleaseTest.ErrorNotKilled
[       OK ] LlvmLibcProcessMReleaseTest.ErrorNotKilled (756 us)
[ RUN      ] LlvmLibcProcessMReleaseTest.ErrorNonExistingPidfd
[       OK ] LlvmLibcProcessMReleaseTest.ErrorNonExistingPidfd (9 us)
Ran 3 tests.  PASS: 2  FAIL: 1
[939/1098] Running unit test libc.test.src.math.smoke.lrintf_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (8 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (9 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (933 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[940/1098] Running unit test libc.test.src.sys.mman.linux.mincore_test
[==========] Running 6 tests from 1 test suite.
[ RUN      ] LlvmLibcMincoreTest.UnMappedMemory
[       OK ] LlvmLibcMincoreTest.UnMappedMemory (18 us)
[ RUN      ] LlvmLibcMincoreTest.UnalignedAddr
[       OK ] LlvmLibcMincoreTest.UnalignedAddr (48 us)
[ RUN      ] LlvmLibcMincoreTest.InvalidVec
[       OK ] LlvmLibcMincoreTest.InvalidVec (13 us)
[ RUN      ] LlvmLibcMincoreTest.NoError
[       OK ] LlvmLibcMincoreTest.NoError (14 us)
[ RUN      ] LlvmLibcMincoreTest.NegativeLength
[       OK ] LlvmLibcMincoreTest.NegativeLength (13 us)
[ RUN      ] LlvmLibcMincoreTest.PageOut
[       OK ] LlvmLibcMincoreTest.PageOut (45 us)
Ran 6 tests.  PASS: 6  FAIL: 0
[941/1098] Running unit test libc.test.src.sys.mman.linux.shm_test

```

</details>

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


More information about the llvm-commits mailing list