[PATCH] D105787: [AbstractAttributor] Fold function calls to `__kmpc_is_spmd_exec_mode` if possible

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 15 10:23:57 PDT 2021


jdoerfert accepted this revision.
jdoerfert added a comment.
This revision is now accepted and ready to land.

LG, one nit.



================
Comment at: llvm/lib/Transforms/IPO/OpenMPOpt.cpp:3579-3583
+    if (KnownSPMDCount && KnownNonSPMDCount) {
+      SimplifiedValue = nullptr;
+      return getState() == StateBefore ? ChangeStatus::UNCHANGED
+                                       : ChangeStatus::CHANGED;
+    }
----------------
below we might get to all generic but here we can give up


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105787



More information about the llvm-commits mailing list