[PATCH] D79676: [Clang][OpenMP][OMPBuilder] Moving OMP allocation and cache creation code to OMPBuilderCBHelpers
Fady Ghanim via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 14 09:43:58 PDT 2020
fghanim marked 4 inline comments as done.
fghanim added inline comments.
================
Comment at: clang/lib/CodeGen/CGStmtOpenMP.cpp:878
+ [this, VDInit, OriginalAddr, VD, ThisFirstprivateIsLastprivate,
+ OrigVD, &Lastprivates, IRef, &OMPBuilder]() {
// Emit private VarDecl with copy init.
----------------
jdoerfert wrote:
> Is this needed?
All these are changes that I forgot to remove after I created a special version for `EmitOMPFirstprivateClause` in D79677 for the OMPBuilder
================
Comment at: clang/lib/CodeGen/CodeGenFunction.h:1581
+ ++I;
+
+ return &*I;
----------------
jdoerfert wrote:
> What is wrong with `BB->getFirstNonPHIOrDbgOrLifetime()`? If it is to avoid too many test changes, please add a TODO. I think from a functional perspective there is no need to advance it after the first set of allocas that may be separated from the phis by non-allocas?
Nothing wrong with it. The first while loop, I just came across a case that I don't remember at the moment that had an instruction that wasn't an alloca, and I wanted to skip over that.
the second while, is to get to the first non-alloca instruction. The purpose is to be able to insert new allocas, after already generated allocas.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79676/new/
https://reviews.llvm.org/D79676
More information about the cfe-commits
mailing list