[PATCH] D95976: [OpenMP] Simplify offloading parallel call codegen

Michael Kruse via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 16 19:41:03 PDT 2021


Meinersbur added inline comments.


================
Comment at: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:1141
   llvm::Value *IsWorker =
       Bld.CreateICmpULT(RT.getGPUThreadID(CGF), getThreadLimit(CGF));
   Bld.CreateCondBr(IsWorker, WorkerBB, MasterCheckBB);
----------------
There seem to be more unordered codegen calls, such as this one.


================
Comment at: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:1150
   llvm::Value *IsMaster =
       Bld.CreateICmpEQ(RT.getGPUThreadID(CGF), getMasterThreadID(CGF));
   Bld.CreateCondBr(IsMaster, MasterBB, EST.ExitBB);
----------------
There seem to be more unordered codegen calls, such as this one.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95976/new/

https://reviews.llvm.org/D95976



More information about the cfe-commits mailing list