diff options
author | Joel E. Denny <jdenny.ornl@gmail.com> | 2021-08-10 12:23:15 -0400 |
---|---|---|
committer | Joel E. Denny <jdenny.ornl@gmail.com> | 2021-08-10 12:29:55 -0400 |
commit | 2ced1f338ae05260b01d9293e9dba27b90a2bfed (patch) | |
tree | 3051d9f3fc63cde374c3231aa1e7b4637393236e /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 497b57ad0b9ee34aeb8c56e9f47332912b50d58c (diff) | |
download | llvm-2ced1f338ae05260b01d9293e9dba27b90a2bfed.zip llvm-2ced1f338ae05260b01d9293e9dba27b90a2bfed.tar.gz llvm-2ced1f338ae05260b01d9293e9dba27b90a2bfed.tar.bz2 |
[OpenMP][NFC] Simplify targetDataEnd conditions for CopyMember
targetDataEnd and targetDataBegin compute CopyMember/copy differently,
and I don't see why they should. This patch eliminates one of those
differences by making a simplifying NFC change to targetDataEnd.
The change is NFC as follows. The change only affects the case when
`!UNIFIED_SHARED_MEMORY || HasCloseModifier`. In that case, the
following points are always true:
* The value of CopyMember is relevant later only if DelEntry = false.
* DelEntry = false only if one of the following is true:
* IsLast = false. In this case, it's always true that CopyMember
= false = IsLast.
* `MEMBER_OF && !PTR_AND_OBJ` is true. In this case, CopyMember =
IsLast.
* Thus, if CopyMember is relevant, CopyMember = IsLast.
Reviewed By: grokos
Differential Revision: https://reviews.llvm.org/D105990
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions