[Openmp-commits] [PATCH] D158544: [OpenMP] Optimized trivial multiple edges from task dependency graph

Romain PEREIRA via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 23 07:20:47 PDT 2023


rpereira-dev added inline comments.


================
Comment at: openmp/runtime/src/kmp_taskdeps.cpp:333
+                                                     kmp_depnode_t *sink,
+                                                     kmp_depnode_t *source) {
+  if (!source)
----------------
tianshilei1992 wrote:
> rpereira-dev wrote:
> > jdoerfert wrote:
> > > why is the order here swapped?
> > Order remains the same for callers; the patch only swaps in this prototype as i believe it was mistakenly inverted
> > (used to be `sink`  -> `source`, is now `source` -> `sink` )
> This looks pretty confusing IMO.
Want me to revert this change and only keep the multiple edges removal ? (4 lines 310, 322, 352, 378)
I can make another one just for the variable names which are currently misleading


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D158544



More information about the Openmp-commits mailing list