[Openmp-commits] [PATCH] D102692: [AMDGPU][Libomptarget] Move Kernel/Symbol info tables to RTLDeviceInfoTy
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue May 25 08:06:33 PDT 2021
JonChesterfield added inline comments.
================
Comment at: openmp/libomptarget/plugins/amdgpu/src/rtl.cpp:499
+
+ for (uint32_t i = 0; i < SymbolInfoTable.size(); i++)
+ SymbolInfoTable[i].clear();
----------------
This is dead - resize the vector will populate it with default constructed map<string>, and clear on a default constructed map is a no-op
================
Comment at: openmp/libomptarget/plugins/amdgpu/src/rtl.cpp:577
KernelArgPoolMap.clear();
+ KernelInfoTable.clear();
+ SymbolInfoTable.clear();
----------------
The KernelInfoTable and SymbolInfoTable calls here are also dead. They're free store allocated memory, don't need to tear them down before closing hsa (unlike kernel arg pool, which contains pointers from hsa allocated memory)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102692/new/
https://reviews.llvm.org/D102692
More information about the Openmp-commits
mailing list