[Openmp-commits] [PATCH] D106345: [OpenMP] Run rewriteDeviceCodeStateMachine in the Module not CGSCC pass
Johannes Doerfert via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jul 20 00:16:07 PDT 2021
jdoerfert created this revision.
jdoerfert added reviewers: jhuber6, tianshilei1992, ggeorgakoudis, ye-luo.
Herald added subscribers: ormris, guansong, bollu, hiraditya, yaxunl.
jdoerfert requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.
While rewriteDeviceCodeStateMachine should probably be folded into
buildCustomStateMachine, we at least need the optimization to happen.
This was not reliably the case in the CGSCC pass but in the Module pass
it seems to work reliably.
This also ports a test to the new kernel encoding (target_init/deinit),
and makes sure we cannot run the kernel in SPMD mode.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106345
Files:
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/custom_state_machines.ll
llvm/test/Transforms/OpenMP/gpu_state_machine_function_ptr_replacement.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106345.360030.patch
Type: text/x-patch
Size: 27208 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210720/8394e354/attachment-0001.bin>
More information about the Openmp-commits
mailing list