Skip to content

Commit 4604246

Browse files
committed
Revert "[LLVM] Only enable -fno-lifetime-dse in LTO mode (#131381)"
This reverts commit 6ac6312. Unfortunately, we are seeing runtime failures due to this bug in syl-ls in post-commit. So we have to pass it until #24952 is resolved https://github.com/intel/llvm/actions/runs/14204467394/job/39799261846?pr=17710 ``` Run SYCL_UR_TRACE=1 sycl-ls Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): 0 libsycl.so.8 0x00007f531e3576e2 1 libsycl.so.8 0x00007f531e354b6e 2 libc.so.6 0x00007f531db84330 3 libur_loader.so.0 0x00007f531ccd0cd6 4 libur_loader.so.0 0x00007f531ce3e71c 5 libur_loader.so.0 0x00007f531cc780c5 6 libur_loader.so.0 0x00007f531cc7a37c 7 libur_loader.so.0 0x00007f531cc6bb5f urLoaderTearDown + 31 8 libsycl.so.8 0x00007f531e206872 9 libsycl.so.8 0x00007f531e209597 10 ld-linux-x86-64.so.2 0x00007f531e55d0f2 11 ld-linux-x86-64.so.2 0x00007f531e561578 12 libc.so.6 0x00007f531db86a76 13 libc.so.6 0x00007f531db86bbe 14 libc.so.6 0x00007f531db691d1 15 libc.so.6 0x00007f531db6928b __libc_start_main + 139 16 sycl-ls 0x000056195f04c9d5 Segmentation fault (core dumped) ```
1 parent b46c9af commit 4604246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/modules/HandleLLVMOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
692692
append("-Werror=unguarded-availability-new" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
693693
endif()
694694

695-
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND LLVM_ENABLE_LTO)
695+
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
696696
# LLVM data structures like llvm::User and llvm::MDNode rely on
697697
# the value of object storage persisting beyond the lifetime of the
698698
# object (#24952). This is not standard compliant and causes a runtime

0 commit comments

Comments
 (0)