[PATCH] D106439: [OpenMP] Fold `__kmpc_is_generic_main_thread_id` if possible
Joseph Huber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 21 07:00:17 PDT 2021
jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992.
Herald added subscribers: ormris, guansong, hiraditya, yaxunl.
jhuber6 requested review of this revision.
Herald added a reviewer: sstefan1.
Herald added subscribers: llvm-commits, bbn, sstefan1.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.
This patch adds the ability to fold `__kmpc_is_generic_main_thread_id` if we
know for a fact that it is executed by the initial thread using
AAExecutionDomain. This combined with folding `__kmpc_is_spmd_exec_mode` will
allow us to fully fold `__kmpc_is_generic_main_thread`.
Depends on D106438 <https://reviews.llvm.org/D106438> D106437 <https://reviews.llvm.org/D106437>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106439
Files:
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/fold_generic_main_thread.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106439.360440.patch
Type: text/x-patch
Size: 5098 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210721/739d015e/attachment.bin>
More information about the llvm-commits
mailing list