diff options
author | Shilei Tian <i@tianshilei.me> | 2022-10-06 16:13:22 -0400 |
---|---|---|
committer | Shilei Tian <i@tianshilei.me> | 2022-10-06 16:13:33 -0400 |
commit | 32dc48094b0c7074617a2b237927128ef148db6d (patch) | |
tree | 6e165b5356cbc24d687626adb1cb588a49a6cca3 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | b9898e7ed1cea0fc429674e655f91d28b9964814 (diff) | |
download | llvm-32dc48094b0c7074617a2b237927128ef148db6d.zip llvm-32dc48094b0c7074617a2b237927128ef148db6d.tar.gz llvm-32dc48094b0c7074617a2b237927128ef148db6d.tar.bz2 |
[OpenMP][DeviceRTL] Fix an issue that thread array might be corrupted
The shared memory stack in the device runtime assumes no intervined uses.
D135037 breaks the assumption, potentially causing the shared stack corruption.
This patch moves the thread array to heap memory. Since it is already the slow
path, it doesn't matter that much anyway.
Reviewed By: jhuber6
Differential Revision: https://reviews.llvm.org/D135391
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions