llvm-capstone/openmp/docs/remarks
Johannes Doerfert 3c8a4c6f47 [OpenMP] Eliminate redundant barriers in the same block
Patch originally by Giorgis Georgakoudis (@ggeorgakoudis), typos and
bugs introduced later by me.

This patch allows us to remove redundant barriers if they are part
of a "consecutive" pair of barriers in a basic block with no impacted
memory effect (read or write) in-between them. Memory accesses to
local (=thread private) or constant memory are allowed to appear.
Technically we could also allow any other memory that is not used to
share information between threads, e.g., the result of a malloc that
is also not captured. However, it will be easier to do more reasoning
once the code is put into an AA. That will also allow us to look through
phis/selects reasonably. At that point we should also deal with calls,
barriers in different blocks, and other complexities.

Differential Revision: https://reviews.llvm.org/D118002
2022-02-01 01:07:50 -06:00
..
OMP100.rst [OpenMP][Documentation] Fix hyperlink location 2021-07-20 12:42:32 -04:00
OMP101.rst [OpenMP][Documentation] Fix hyperlink location 2021-07-20 12:42:32 -04:00
OMP102.rst [OpenMP][Documentation] Fix hyperlink location 2021-07-20 12:42:32 -04:00
OMP110.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
OMP111.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
OMP112.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
OMP113.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
OMP120.rst [OpenMP][NFC] Fix a few typos in OpenMP documentation 2021-07-26 16:03:47 -04:00
OMP121.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
OMP130.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
OMP131.rst [OpenMP][NFC] Fix a few typos in OpenMP documentation 2021-07-26 16:03:47 -04:00
OMP132.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
OMP133.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
OMP140.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
OMP150.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
OMP160.rst [OpenMP][NFC] Fix a few typos in OpenMP documentation 2021-07-26 16:03:47 -04:00
OMP170.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
OMP180.rst [OpenMP] Eliminate redundant barriers in the same block 2022-02-01 01:07:50 -06:00
OMP190.rst [OpenMP] Eliminate redundant barriers in the same block 2022-02-01 01:07:50 -06:00
OptimizationRemarks.rst [OpenMP] Eliminate redundant barriers in the same block 2022-02-01 01:07:50 -06:00