[Openmp-commits] [PATCH] D52122: [OpenMP][libomptarget] Set the frame pointer then test empty slot condition
Phabricator via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Sep 25 11:49:45 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL343006: [OpenMP][libomptarget] Set the frame pointer then test empty slot condition (authored by gbercea, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D52122?vs=165575&id=166966#toc
Repository:
rL LLVM
https://reviews.llvm.org/D52122
Files:
openmp/trunk/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu
Index: openmp/trunk/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu
===================================================================
--- openmp/trunk/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu
+++ openmp/trunk/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu
@@ -477,13 +477,13 @@
// Pointer to next available stack.
void *&StackP = DataSharingState.StackPtr[WID];
+ // Pop the frame.
+ StackP = FrameStart;
+
// If the current slot is empty, we need to free the slot after the
// pop.
bool SlotEmpty = (StackP == &SlotP->Data[0]);
- // Pop the frame.
- StackP = FrameStart;
-
if (SlotEmpty && SlotP->Prev) {
// Before removing the slot we need to reset StackP.
StackP = SlotP->PrevSlotStackPtr;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52122.166966.patch
Type: text/x-patch
Size: 769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180925/9c1e3465/attachment.bin>
More information about the Openmp-commits
mailing list