[Openmp-commits] [PATCH] D69476: [nfc][libomptarget] Warp size aware logging by using builtinvar abstraction consistently. Last part of D69423
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sun Oct 27 09:05:25 PDT 2019
JonChesterfield marked an inline comment as done.
JonChesterfield added inline comments.
================
Comment at: openmp/libomptarget/deviceRTLs/nvptx/src/supporti.h:109
-INLINE unsigned GetLaneId() { return threadIdx.x & (WARPSIZE - 1); }
+INLINE unsigned GetLaneId() { return GetThreadIdInBlock() % WARPSIZE; }
----------------
LLVM transforms the mod with constant to mask with constant - 1 at O1.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69476/new/
https://reviews.llvm.org/D69476
More information about the Openmp-commits
mailing list