[PATCH] D102307: [OpenMP] Detect SPMD compatible kernels and execute them as such

Shilei Tian via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 25 08:04:36 PDT 2021


tianshilei1992 added inline comments.
Herald added a subscriber: ormris.


================
Comment at: llvm/lib/Transforms/IPO/OpenMPOpt.cpp:499
   bool operator==(const KernelInfoState &RHS) const {
-    if ((MayReachUnknownParallelRegion != RHS.MayReachUnknownParallelRegion))
+    if ((MayReachUnknownParallelRegion != RHS.MayReachUnknownParallelRegion) |
+        (IsSPMDCompatible != RHS.IsSPMDCompatible))
----------------
`||` or `|`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102307/new/

https://reviews.llvm.org/D102307



More information about the llvm-commits mailing list