From 5d9cb20f40306eecfde3752b59b9d79744626a01 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Mon, 23 Jan 2023 19:45:06 -0800 Subject: [PATCH] [OpenMP] Run the Attributor as part of the device runtime optimization This will help us propagate assumptions to call sites, among other things. --- openmp/libomptarget/DeviceRTL/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmp/libomptarget/DeviceRTL/CMakeLists.txt b/openmp/libomptarget/DeviceRTL/CMakeLists.txt index 872dcb4..49b398c 100644 --- a/openmp/libomptarget/DeviceRTL/CMakeLists.txt +++ b/openmp/libomptarget/DeviceRTL/CMakeLists.txt @@ -114,7 +114,7 @@ set(src_files ) set(clang_opt_flags -O3 -mllvm -openmp-opt-disable -DSHARED_SCRATCHPAD_SIZE=512) -set(link_opt_flags -O3 -openmp-opt-disable) +set(link_opt_flags -O3 -openmp-opt-disable -attributor-enable=module) set(link_export_flag -passes=internalize -internalize-public-api-file=${source_directory}/exports) set(link_extract_flag --func='__keep_alive' --delete) -- 2.7.4