[PATCH] D106556: [OpenMPOpt] Move dedup runtime calls after init for target regions
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 22 09:16:48 PDT 2021
jdoerfert added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/OpenMPOpt.cpp:1589
+ auto &KernelInitRFI = OMPInfoCache.RFIs[OMPRTL___kmpc_target_init];
+ auto *KernelInitUV = KernelInitRFI.getUseVector(F);
+ assert(KernelInitUV->size() == 1 &&
----------------
It could happen that this is empty, in the CGSCC pass for example.
In that case just `continue` and do not move anything.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106556/new/
https://reviews.llvm.org/D106556
More information about the llvm-commits
mailing list