[Openmp-commits] [PATCH] D83268: [OpenMP][NFC] Remove unused (always fixed) arguments
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jul 7 06:25:26 PDT 2020
JonChesterfield accepted this revision.
JonChesterfield added a comment.
This revision is now accepted and ready to land.
Aside from the API stability concern this looks uncontentious. Removes dead arguments, generally makes things simpler. Thus LGTM.
@Hahnfeld @ABataev - are you sufficiently persuaded that preserving the current interface is not worth the development cost?
================
Comment at: clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp:42
- /// *outlined_function, int16_t
- /// IsOMPRuntimeInitialized);
OMPRTL_NVPTX__kmpc_kernel_prepare_parallel,
----------------
ABataev wrote:
> I think, instead the optimizer can try to detect if the runtime library is used by the kernel and switch this flag to `0` if no runtime calls are used in the kernel. For non-SPMD mode in most cases, the runtime is required, but in some cases, it can be disabled.
If we can detect that no runtime calls are used, we should be able to do better than passing a different argument. E.g. delete some setup calls.
Failing that, if we want to pass an argument which says 'actually don't do any work', it shouldn't be the same argument used to check whether the runtime has been initialised.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83268/new/
https://reviews.llvm.org/D83268
More information about the Openmp-commits
mailing list