[all-commits] [llvm/llvm-project] dc3b5b: [OpenMPOpt] Make the combination of `ident_t*` det...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Mon Apr 20 21:29:20 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dc3b5b00fea104f231ae70fecab9d625fe14158c
      https://github.com/llvm/llvm-project/commit/dc3b5b00fea104f231ae70fecab9d625fe14158c
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-04-20 (Mon, 20 Apr 2020)

  Changed paths:
    M llvm/lib/Transforms/IPO/OpenMPOpt.cpp
    M llvm/test/Transforms/OpenMP/deduplication.ll

  Log Message:
  -----------
  [OpenMPOpt] Make the combination of `ident_t*` deterministic

Before we kept the first applicable `ident_t*` during deduplication of
runtime calls. The problem is that "first" is dependent on the iteration
order of a DenseMap. Since the proper solution, which is to combine the
information from all `ident_t*`, should be deterministic on its own, we
will not try to make the iteration order deterministic. Instead, we will
create a fresh `ident_t*` if there is not a unique existing `ident_t*`
to pick.




More information about the All-commits mailing list