[OpenMP][NFC] Eliminate CopyMember from targetDataEnd
authorJoel E. Denny <jdenny.ornl@gmail.com>
Wed, 1 Sep 2021 20:24:28 +0000 (16:24 -0400)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Wed, 1 Sep 2021 21:31:42 +0000 (17:31 -0400)
commitfa6c275505632846260f610b71656ddde1d88598
treed619bfdde6f4e9211ea9a1e4f809b4252ec16a70
parent8e4836b2a296e4e78cc86f52014c48d9ad5aaf1a
[OpenMP][NFC] Eliminate CopyMember from targetDataEnd

This patch is based on comments in D105990.  It is NFC according to
the following observations:

1. `CopyMember` is computed as `!IsHostPtr && IsLast`.
2. `DelEntry` is true only if `IsLast` is true.

We apply those observations in order:

```
if ((DelEntry || Always || CopyMember) && !IsHostPtr)

if ((DelEntry || Always || IsLast) && !IsHostPtr)

if ((Always || IsLast) && !IsHostPtr)
```

Reviewed By: grokos

Differential Revision: https://reviews.llvm.org/D107926
openmp/libomptarget/src/omptarget.cpp