[PATCH] D52629: [OpenMP] Make default parallel for schedule in NVPTX target regions in SPMD mode achieve coalescing
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 27 13:23:26 PDT 2018
ABataev added inline comments.
================
Comment at: lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp:4103
+ ScheduleKind = OMPC_SCHEDULE_static;
+ Chunk = CGF.Builder.getIntN(CGM.getDataLayout().getTypeAllocSizeInBits(
+ CGF.ConvertType(S.getIterationVariable()->getType())), 1);
----------------
Use `getContext().getTypeSize(S.getIterationVariable()->getType())`
Repository:
rC Clang
https://reviews.llvm.org/D52629
More information about the cfe-commits
mailing list