[Openmp-commits] [PATCH] D158656: [OpenMP] Disable early vectorization of loads/stores in the runtime
Johannes Doerfert via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Aug 23 15:14:41 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG80906ce48d5b: [OpenMP] Disable early vectorization of loads/stores in the runtime (authored by jdoerfert).
Herald added a project: OpenMP.
Herald added a subscriber: openmp-commits.
Changed prior to commit:
https://reviews.llvm.org/D158656?vs=552829&id=552901#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158656/new/
https://reviews.llvm.org/D158656
Files:
openmp/libomptarget/DeviceRTL/CMakeLists.txt
Index: openmp/libomptarget/DeviceRTL/CMakeLists.txt
===================================================================
--- openmp/libomptarget/DeviceRTL/CMakeLists.txt
+++ openmp/libomptarget/DeviceRTL/CMakeLists.txt
@@ -109,8 +109,14 @@
${source_directory}/Workshare.cpp
)
-set(clang_opt_flags -O3 -mllvm -openmp-opt-disable -DSHARED_SCRATCHPAD_SIZE=512)
-set(link_opt_flags -O3 -openmp-opt-disable -attributor-enable=module)
+# We disable the slp vectorizer during the runtime optimization to avoid
+# vectorized accesses to the shared state. Generally, those are "good" but
+# the optimizer pipeline (esp. Attributor) does not fully support vectorized
+# instructions yet and we end up missing out on way more important constant
+# propagation. That said, we will run the vectorizer again after the runtime
+# has been linked into the user program.
+set(clang_opt_flags -O3 -mllvm -openmp-opt-disable -DSHARED_SCRATCHPAD_SIZE=512 -mllvm -vectorize-slp=false )
+set(link_opt_flags -O3 -openmp-opt-disable -attributor-enable=module -vectorize-slp=false )
set(link_export_flag -passes=internalize -internalize-public-api-file=${source_directory}/exports)
# Prepend -I to each list element
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158656.552901.patch
Type: text/x-patch
Size: 1217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230823/fce648a9/attachment-0001.bin>
More information about the Openmp-commits
mailing list