From: Johannes Doerfert Date: Tue, 24 Jan 2023 03:45:06 +0000 (-0800) Subject: [OpenMP] Run the Attributor as part of the device runtime optimization X-Git-Tag: upstream/17.0.6~19872 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d9cb20f40306eecfde3752b59b9d79744626a01;p=platform%2Fupstream%2Fllvm.git [OpenMP] Run the Attributor as part of the device runtime optimization This will help us propagate assumptions to call sites, among other things. --- 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)