[Openmp-commits] [PATCH] D123446: [OpenMP][FIX] Remove shadow pointer map and introduce consistent locking

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Apr 13 09:40:33 PDT 2022


tianshilei1992 added inline comments.


================
Comment at: openmp/libomptarget/include/device.h:92
+    /// pointer addresses to identify stale entries.
+    std::map<void **, ShadowPtrInfoTy> ShadowPtrInfos;
 
----------------
We don't use the order here, right? If so, `unordered_map` can usually get better performance.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123446



More information about the Openmp-commits mailing list